Preempt X11 keyboard grabs and window stacking when lockscreen is active

This commit is contained in:
Luxferre committed 2026-11-01 10:39:40 +02:00
1 parent 83dd79fe76
commit f112b6ae72
78 files changed
+403 -53

No files matched your search

+3 -1
View File
@@ -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;
}