Skip to content

Commit 823e5bb

Browse files
authored
WindowClone: fix close button (#2345)
1 parent 452e5ce commit 823e5bb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Widgets/MultitaskingView/WindowClone.vala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ public class Gala.WindowClone : ActorTarget {
168168
opacity = 0
169169
};
170170
close_button.triggered.connect (close_window);
171+
close_button.notify["has-pointer"].connect (() => update_hover_widgets ());
171172

172173
window_icon = new WindowIcon (window, WINDOW_ICON_SIZE, (int)Math.round (monitor_scale_factor)) {
173174
visible = !overview_mode
@@ -386,7 +387,7 @@ public class Gala.WindowClone : ActorTarget {
386387

387388
var duration = Utils.get_animation_duration (FADE_ANIMATION_DURATION);
388389

389-
var show = has_pointer && !in_slot_animation;
390+
var show = (has_pointer || close_button.has_pointer) && !in_slot_animation;
390391

391392
close_button.save_easing_state ();
392393
close_button.set_easing_mode (Clutter.AnimationMode.LINEAR);

0 commit comments

Comments
 (0)