Preempt X11 keyboard grabs and window stacking when lockscreen is active
This commit is contained in:
1 parent
83dd79fe76
commit
f112b6ae72
78 files changed
+403
-53
No files matched your search
@@ -628,7 +628,9 @@ static void handle_event(XEvent& e) {
|
||||
} else if (e.type == Expose) {
|
||||
if (e.xexpose.count == 0) dirty = true;
|
||||
} else if (e.type == FocusOut) {
|
||||
if (e.xfocus.mode == NotifyNormal && state == PLAYING) {
|
||||
if ((e.xfocus.mode == NotifyNormal || e.xfocus.mode == NotifyGrab ||
|
||||
e.xfocus.mode == NotifyWhileGrabbed) &&
|
||||
state == PLAYING) {
|
||||
state = PAUSED;
|
||||
dirty = true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user