focus-follows-mouse: honour floating panes

Make sure the z-ordering of floating panes is honoured when
focus-follows-mouse is in use.
This commit is contained in:
Thomas Adam
2026-01-09 19:00:17 +00:00
parent a50d00aa47
commit d1df8dcccc

View File

@@ -1097,6 +1097,7 @@ have_event:
if (wp != NULL && if (wp != NULL &&
wp != w->active && wp != w->active &&
options_get_number(s->options, "focus-follows-mouse")) { options_get_number(s->options, "focus-follows-mouse")) {
window_redraw_active_switch(w, wp);
window_set_active_pane(w, wp, 1); window_set_active_pane(w, wp, 1);
server_redraw_window_borders(w); server_redraw_window_borders(w);
server_status_window(w); server_status_window(w);