From 87840b3d658739eb17c8f7fc4e8da0c2d0fa0b32 Mon Sep 17 00:00:00 2001 From: Erik Reider <35975961+ErikReider@users.noreply.github.com> Date: Sat, 6 Aug 2022 16:23:35 +0200 Subject: [PATCH] Fixed Control Center sometimes dismissing when clicking inside of CC --- src/controlCenter/controlCenter.vala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controlCenter/controlCenter.vala b/src/controlCenter/controlCenter.vala index fd53211..1355187 100644 --- a/src/controlCenter/controlCenter.vala +++ b/src/controlCenter/controlCenter.vala @@ -182,7 +182,7 @@ namespace SwayNotificationCenter { private bool blank_window_press (Gdk.Event event) { // Calculate if the clicked coords intersect the ControlCenter double x, y; - event.get_coords (out x, out y); + event.get_root_coords (out x, out y); Gdk.Rectangle click_rectangle = Gdk.Rectangle () { width = 1, height = 1,