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

+9
View File
@@ -297,6 +297,15 @@ int engmenu_run_main(int argc, char** argv) {
if (visible && ev.xexpose.count == 0) {
render();
}
} else if (ev.type == VisibilityNotify && visible &&
ev.xvisibility.state != VisibilityUnobscured) {
if (isAnotherPluginActive("engmenu")) {
closeWindow();
} else {
XRaiseWindow(dpy, win);
grabPluginKeyboard(dpy, win);
render();
}
} else if (ev.type == KeyPress) {
if (!visible) {
continue;