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

+14 -1
View File
@@ -285,10 +285,14 @@ bool isPidAliveFile(const std::string& path) {
}
bool isExternalOverlayActive() {
if (::access("/tmp/dwm_plugin_dmenu.active", F_OK) == 0) {
if (::access("/tmp/bananarchy_screen_locked", F_OK) == 0 ||
::access("/tmp/dwm_plugin_dmenu.active", F_OK) == 0 ||
::access("/tmp/sxmo_call_ringing", F_OK) == 0 ||
::access("/tmp/sxmo_active_call", F_OK) == 0) {
return true;
}
static const char* kOverlayPids[] = {
"xlocker.pid",
"xdrawer.pid",
"xcallscreen.pid",
"xdialer.pid",
@@ -303,6 +307,15 @@ bool isExternalOverlayActive() {
"xringtones.pid",
"xwallpapers.pid",
"xmusic.pid",
"xsip.pid",
"xemail.pid",
"xirc.pid",
"xtox.pid",
"xsmallweb.pid",
"xwebarchy.pid",
"xgps.pid",
"xpasscode.pid",
"xengmenu.pid",
};
char uidDir[64];
std::snprintf(uidDir, sizeof(uidDir), "/run/user/%u",