mirror of
https://codeberg.org/dwl/dwl.git
synced 2026-11-06 21:23:12 +00:00
refocus after unsetting fullscreen in mapnotify()
Since a6e2c15 focustop() prefers fullscreen clients, so the
focusclient(focustop(selmon)) in setmon() focuses the fullscreen client
before mapnotify() unsets its fullscreen state, and focus never moves to
the new client.
This commit is contained in:
@@ -2019,8 +2019,11 @@ mapnotify(struct wl_listener *listener, void *data)
|
||||
unset_fullscreen:
|
||||
m = c->mon ? c->mon : xytomon(c->geom.x, c->geom.y);
|
||||
wl_list_for_each(w, &clients, link) {
|
||||
if (w != c && w != p && w->isfullscreen && m == w->mon && (w->tags & c->tags))
|
||||
if (w != c && w != p && w->isfullscreen && m == w->mon && (w->tags & c->tags)) {
|
||||
setfullscreen(w, 0);
|
||||
/* setmon() focused w because focustop() prefers fullscreen clients */
|
||||
focusclient(focustop(selmon), NULL, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user