Don't raise floating windows when focused because of focus_follows_mouse

Fixes #2990.
This commit is contained in:
Orestis Floros
2017-12-06 01:58:47 +02:00
parent 2b5b6330dc
commit 0c2fbeedc2
15 changed files with 99 additions and 51 deletions

View File

@ -318,7 +318,7 @@ void floating_enable(Con *con, bool automatic) {
render_con(con, false);
if (set_focus)
con_focus(con);
con_activate(con);
/* Check if we need to re-assign it to a different workspace because of its
* coordinates and exit if that was done successfully. */
@ -382,7 +382,7 @@ void floating_disable(Con *con, bool automatic) {
con_fix_percent(con->parent);
if (set_focus)
con_focus(con);
con_activate(con);
floating_set_hint_atom(con, false);
ipc_send_window_event("floating", con);
@ -450,7 +450,7 @@ bool floating_maybe_reassign_ws(Con *con) {
DLOG("Moving con %p / %s to workspace %p / %s\n", con, con->name, ws, ws->name);
con_move_to_workspace(con, ws, false, true, false);
workspace_show(ws);
con_focus(con_descend_focused(con));
con_activate(con_descend_focused(con));
return true;
}