mirror of
https://github.com/ErikReider/SwayNotificationCenter.git
synced 2024-11-22 09:43:52 +03:00
Fixed Control Center sometimes dismissing when clicking inside of CC
This commit is contained in:
parent
14a327603c
commit
87840b3d65
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user