~ruther/dwl

f6e3a2826ea910dfb501d451194ed48ce3527167 — Guido Cella 2 months ago aa0c165
deactivate the old client when the new one wants focus

I see no issue with winecfg after removing this condition, so I assume
it was fixed upstream.
1 files changed, 1 insertions(+), 3 deletions(-)

M dwl.c
M dwl.c => dwl.c +1 -3
@@ 1539,9 1539,7 @@ 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
		 * 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)) {
			client_set_border_color(old_c, bordercolor);

			client_activate_surface(old, 0);