diff options
-rw-r--r-- | bindings.lua | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/bindings.lua b/bindings.lua index 5c32d05..1959d9e 100644 --- a/bindings.lua +++ b/bindings.lua @@ -94,14 +94,18 @@ function M.create(workspace) function () if client.focus then local c = client.focus + local s = c.screen workspace:client_move_relative(c, 1) + timer.delayed_call(awful.screen.focus, s) end end), awful.key({ modkey, "Shift" }, "k", function () if client.focus then local c = client.focus + local s = c.screen workspace:client_move_relative(c, -1) + timer.delayed_call(awful.screen.focus, s) end end), @@ -178,7 +182,9 @@ function M.create(workspace) function () if client.focus then local c = client.focus - workspace:move_client(c, workspace.screen_state[c.screen].desktop_idx, i) + local s = c.screen + workspace:move_client(c, workspace.screen_state[s].desktop_idx, i) + timer.delayed_call(awful.screen.focus, s) end end)) end @@ -217,9 +223,11 @@ function M.create(workspace) function () if client.focus then local c = client.focus + local s = c.screen local desk = workspace.desktops[i] local page_idx = desk:find_empty_page() or 1 workspace:move_client(c, i, page_idx) + timer.delayed_call(awful.screen.focus, s) end end)) end |