Skip to content

Commit eb3b7f2

Browse files
committed
WindowClone: Fix has-pointer handling with reduced motion
1 parent c5e5ec2 commit eb3b7f2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Widgets/MultitaskingView/WindowClone.vala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,10 @@ public class Gala.WindowClone : ActorTarget, RootTarget {
130130
bind_property ("monitor-scale", active_shape, "monitor-scale");
131131

132132
clone_container = new Clutter.Actor () {
133+
reactive = true,
133134
pivot_point = { 0.5f, 0.5f }
134135
};
136+
clone_container.notify["has-pointer"].connect (update_hover_widgets);
135137

136138
window_title = new Tooltip (monitor_scale);
137139
bind_property ("monitor-scale", window_title, "monitor-scale");
@@ -156,7 +158,6 @@ public class Gala.WindowClone : ActorTarget, RootTarget {
156158
window.notify["title"].connect (() => window_title.set_text (window.get_title () ?? ""));
157159
window_title.set_text (window.get_title () ?? "");
158160

159-
notify["has-pointer"].connect (update_hover_widgets);
160161
notify["animating"].connect (update_hover_widgets);
161162
}
162163

@@ -373,7 +374,7 @@ public class Gala.WindowClone : ActorTarget, RootTarget {
373374
private void update_hover_widgets () {
374375
var duration = Utils.get_animation_duration (FADE_ANIMATION_DURATION);
375376

376-
var show = (has_pointer || close_button.has_pointer) && !animating;
377+
var show = (clone_container.has_pointer || close_button.has_pointer) && !animating;
377378

378379
close_button.save_easing_state ();
379380
close_button.set_easing_mode (Clutter.AnimationMode.LINEAR);

0 commit comments

Comments
 (0)