X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Ffloating.c;fp=src%2Ffloating.c;h=e958153d6a647ab5242188d932f28e1b3ae19e98;hb=0c2fbeedc2d8c11e210961c8c0ca9d43d4a044ce;hp=85bd8cc051370dc0f3d95f3922df50212425b1cb;hpb=2b5b6330dc40fe8398a2c0e3d90a3531b225bc4c;p=i3%2Fi3 diff --git a/src/floating.c b/src/floating.c index 85bd8cc0..e958153d 100644 --- a/src/floating.c +++ b/src/floating.c @@ -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; }