Skip to content

Commit a4566f3

Browse files
committed
WindowClone: Fix close button appearing during animation
When opening or closing the mtv we remove and readd the window clones leading to a progress sync for all actions which would make the close button appear since its opacity is being set on the CUSTOM action.
1 parent 74d2cf3 commit a4566f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Widgets/MultitaskingView/WindowClone.vala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ public class Gala.WindowClone : ActorTarget, RootTarget {
273273
}
274274

275275
public override void update_progress (Gala.GestureAction action, double progress) {
276-
if (action != CUSTOM || slot == null || !Meta.Prefs.get_gnome_animations ()) {
276+
if (action != CUSTOM || !has_pointer || slot == null || !Meta.Prefs.get_gnome_animations ()) {
277277
return;
278278
}
279279

0 commit comments

Comments
 (0)