You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I traced this problem down to thread-safety. The variable GLWindet::ctrlPressed is a non-atomic bool, and there is no single memory barrier used in the code. Despite setting it to true in the event handler, it could still be read as false in another event handler if the processor is multi-core and has advanced caching. But changing it to std::atomic_bool is only a partial solution. While I can now select multiple surfaces, the software still behaves in a very odd way. Looks like there are even more race conditions.
t7saeki
added a commit
to t7saeki/elmerfem
that referenced
this issue
Jul 22, 2023
Fix for issue ElmerCSC#441 (ElmerGUI: unable to select multiple surfaces ElmerCSC#411) by leveraging MouseEvent::modifiers() instead of these bool variables.
In most recent Git (devel) versions holding Ctrl to select multiple surfaces (i.e. for Unify) either is not reliable or does not work at all.
Steps to reproduce:
The text was updated successfully, but these errors were encountered: