mirror of
https://codeberg.org/dwl/dwl.git
synced 2025-10-27 18:24:16 +00:00
don't deactivate old client if new client (none) is unmanaged
This commit is contained in:
parent
2b171fd501
commit
1542f27301
6
dwl.c
6
dwl.c
@ -1282,9 +1282,11 @@ focusclient(Client *c, int lift)
|
||||
return;
|
||||
} else if (old_c && old_c == exclusive_focus && client_wants_focus(old_c)) {
|
||||
return;
|
||||
/* Don't deactivate old client if the new one wants focus, as this causes issues with winecfg
|
||||
/* Don't deactivate old client if the new one wants focus or if the new one
|
||||
* is unmanaged (no client), as this causes issues with winecfg
|
||||
* and probably other clients */
|
||||
} else if (old_c && !client_is_unmanaged(old_c) && (!c || !client_wants_focus(c))) {
|
||||
} else if (old_c && !client_is_unmanaged(old_c) &&
|
||||
(c && (client_wants_focus(c) || !client_is_unmanaged(c)))) {
|
||||
client_set_border_color(old_c, bordercolor);
|
||||
|
||||
client_activate_surface(old, 0);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user