mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-03-26 07:58:16 -04:00
opt: allow layershell surface toggle shortcut inhibit
This commit is contained in:
parent
51b7e35954
commit
9e85a31495
1 changed files with 9 additions and 2 deletions
11
src/mango.c
11
src/mango.c
|
|
@ -5658,8 +5658,15 @@ void handle_keyboard_shortcuts_inhibit_new_inhibitor(
|
||||||
}
|
}
|
||||||
|
|
||||||
// per-view, seat-agnostic config via criteria
|
// per-view, seat-agnostic config via criteria
|
||||||
Client *c = get_client_from_surface(inhibitor->surface);
|
Client *c = NULL;
|
||||||
if (c && !c->allow_shortcuts_inhibit) {
|
LayerSurface *l = NULL;
|
||||||
|
|
||||||
|
int type = toplevel_from_wlr_surface(inhibitor->surface, &c, &l);
|
||||||
|
|
||||||
|
if (type < 0)
|
||||||
|
return;
|
||||||
|
|
||||||
|
if (type != LayerShell && c && !c->allow_shortcuts_inhibit) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue