From ce3389e3f9518a0df81f59eba2070cf7437bbb1f Mon Sep 17 00:00:00 2001 From: Leonhard <106322251+leolost2605@users.noreply.github.com> Date: Tue, 3 Dec 2024 17:44:05 +0100 Subject: [PATCH 1/2] HideTracker: Remove queued update in destructor (#2133) --- src/ShellClients/HideTracker.vala | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ShellClients/HideTracker.vala b/src/ShellClients/HideTracker.vala index 39c2121ec..05f77a88f 100644 --- a/src/ShellClients/HideTracker.vala +++ b/src/ShellClients/HideTracker.vala @@ -51,6 +51,10 @@ public class Gala.HideTracker : Object { if (hide_timeout_id != 0) { Source.remove (hide_timeout_id); } + + if (update_timeout_id != 0) { + Source.remove (update_timeout_id); + } } construct { From bb04c32aaf880122f5faa197ca2de7cc0fb2ccb1 Mon Sep 17 00:00:00 2001 From: Leo Date: Tue, 3 Dec 2024 20:06:14 +0300 Subject: [PATCH 2/2] Fix compilation warnings (#2132) --- src/ShellClients/HideTracker.vala | 3 ++- src/WindowManager.vala | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ShellClients/HideTracker.vala b/src/ShellClients/HideTracker.vala index 05f77a88f..ecc656959 100644 --- a/src/ShellClients/HideTracker.vala +++ b/src/ShellClients/HideTracker.vala @@ -99,7 +99,7 @@ public class Gala.HideTracker : Object { display.get_stage ().add_action_full ("panel-swipe-gesture", CAPTURE, pan_action); } - //Can be removed with mutter > 45 +#if !HAS_MUTTER45 private bool window_has_pointer () { var cursor_tracker = display.get_cursor_tracker (); Graphene.Point pointer_pos; @@ -118,6 +118,7 @@ public class Gala.HideTracker : Object { }; return graphene_window_rect.contains_point (pointer_pos); } +#endif private void track_focus_window (Meta.Window? window) { if (window == null) { diff --git a/src/WindowManager.vala b/src/WindowManager.vala index 8f47ba215..cf6e8dd79 100644 --- a/src/WindowManager.vala +++ b/src/WindowManager.vala @@ -1300,6 +1300,8 @@ namespace Gala { case Meta.SizeChange.UNFULLSCREEN: handle_fullscreen_window (window, which_change_local); break; + default: + break; } size_change_completed (actor);