Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion src/Widgets/MultitaskingView/MultitaskingView.vala
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ namespace Gala {
}

public override void start_progress (GestureAction action) {
if (!opened) {
if (!visible) {
opened = true;

wm.background_group.hide ();
Expand Down Expand Up @@ -508,5 +508,19 @@ namespace Gala {

return true;
}

public override bool captured_event (Clutter.Event event) {
/* If we aren't open but receive events this means we are animating closed
* or we are finishing a workspace switch animation. In any case we want to
* prevent a drag and drop to start for the window clones which can happen
* pretty easily if you click on one while the animation finishes.
*/
var type = event.get_type (); // LEAVE and ENTER have to be propagated
if (!opened && animating && type != ENTER && type != LEAVE) {
return Clutter.EVENT_STOP;
}

return Clutter.EVENT_PROPAGATE;
}
}
}