Fixed Control Center sometimes dismissing when clicking inside of CC
This commit is contained in:
@@ -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,
|
||||||
|
Reference in New Issue
Block a user