summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--workspace.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/workspace.lua b/workspace.lua
index 15201dd..1522d68 100644
--- a/workspace.lua
+++ b/workspace.lua
@@ -151,9 +151,8 @@ end
function Workspace:move_client(client, desk, page)
local dst_page = self.desktops[desk].pages[page]
- local dst_screen = awful.tag.getscreen(dst_page)
- client:move_to_screen(dst_screen)
- awful.client.movetotag(dst_page, client)
+ client:move_to_screen(dst_page.screen)
+ client:move_to_tag(dst_page)
end
function Workspace:client_move_relative(client, offset)