Fixed Control Center sometimes dismissing when clicking inside of CC

This commit is contained in:
Erik Reider 2022-08-06 16:23:35 +02:00
parent 14a327603c
commit 87840b3d65

View File

@ -182,7 +182,7 @@ namespace SwayNotificationCenter {
private bool blank_window_press (Gdk.Event event) { private bool blank_window_press (Gdk.Event event) {
// Calculate if the clicked coords intersect the ControlCenter // Calculate if the clicked coords intersect the ControlCenter
double x, y; double x, y;
event.get_coords (out x, out y); event.get_root_coords (out x, out y);
Gdk.Rectangle click_rectangle = Gdk.Rectangle () { Gdk.Rectangle click_rectangle = Gdk.Rectangle () {
width = 1, width = 1,
height = 1, height = 1,