File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
src/Widgets/MultitaskingView Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -508,5 +508,19 @@ namespace Gala {
508508
509509 return true ;
510510 }
511+
512+ public override bool captured_event (Clutter .Event event ) {
513+ /* If we aren't open but receive events this means we are animating closed
514+ * or we are finishing a workspace switch animation. In any case we want to
515+ * prevent a drag and drop to start for the window clones which can happen
516+ * pretty easily if you click on one while the animation finishes.
517+ */
518+ var type = event. get_type (); // LEAVE and ENTER have to be propagated
519+ if (! opened && animating && type != ENTER && type != LEAVE ) {
520+ return Clutter . EVENT_STOP ;
521+ }
522+
523+ return Clutter . EVENT_PROPAGATE ;
524+ }
511525 }
512526}
You can’t perform that action at this time.
0 commit comments