Raise floating window to top when it gets focus
Applied for: 1. '[...] focus' for a floating container raises it to the top. 2. Focusing a window through a focus event raises it to the top. Fixes #2572
This commit is contained in:
committed by
Michael Stapelberg
parent
683e33199d
commit
8653bfe8d3
@ -243,6 +243,13 @@ void con_focus(Con *con) {
|
||||
workspace_update_urgent_flag(con_get_workspace(con));
|
||||
ipc_send_window_event("urgent", con);
|
||||
}
|
||||
|
||||
/* Focusing a container with a floating parent should raise it to the top. Since
|
||||
* con_focus is called recursively for each parent we don't need to use
|
||||
* con_inside_floating(). */
|
||||
if (con->type == CT_FLOATING_CON) {
|
||||
floating_raise_con(con);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user