Fix compilation warnings (#2132)

This commit is contained in:
Leo 2024-12-03 20:06:14 +03:00 committed by GitHub
parent ce3389e3f9
commit bb04c32aaf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 1 deletions

View File

@ -99,7 +99,7 @@ public class Gala.HideTracker : Object {
display.get_stage ().add_action_full ("panel-swipe-gesture", CAPTURE, pan_action); 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 () { private bool window_has_pointer () {
var cursor_tracker = display.get_cursor_tracker (); var cursor_tracker = display.get_cursor_tracker ();
Graphene.Point pointer_pos; Graphene.Point pointer_pos;
@ -118,6 +118,7 @@ public class Gala.HideTracker : Object {
}; };
return graphene_window_rect.contains_point (pointer_pos); return graphene_window_rect.contains_point (pointer_pos);
} }
#endif
private void track_focus_window (Meta.Window? window) { private void track_focus_window (Meta.Window? window) {
if (window == null) { if (window == null) {

View File

@ -1300,6 +1300,8 @@ namespace Gala {
case Meta.SizeChange.UNFULLSCREEN: case Meta.SizeChange.UNFULLSCREEN:
handle_fullscreen_window (window, which_change_local); handle_fullscreen_window (window, which_change_local);
break; break;
default:
break;
} }
size_change_completed (actor); size_change_completed (actor);