summaryrefslogtreecommitdiff
path: root/bindings.lua
diff options
context:
space:
mode:
Diffstat (limited to 'bindings.lua')
-rw-r--r--bindings.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/bindings.lua b/bindings.lua
index 0379525..c9261ca 100644
--- a/bindings.lua
+++ b/bindings.lua
@@ -89,7 +89,7 @@ function M.create(workspace)
mypromptbox[mouse.screen].widget,
function(input)
if input then
- local cur_desk = workspace.screen_state[mouse.screen].desktop
+ local cur_desk = workspace.screen_state[mouse.screen].desktop_idx
workspace:rename_desktop(cur_desk, input)
end
end)
@@ -109,7 +109,7 @@ function M.create(workspace)
local state = workspace.screen_state[screen]
local desk = 1
if state then
- desk = state.desktop
+ desk = state.desktop_idx
end
workspace:view(screen, desk, i)
@@ -119,7 +119,7 @@ function M.create(workspace)
function ()
if client.focus then
local c = client.focus
- workspace:move_client(c, workspace.screen_state[c.screen].desktop, i)
+ workspace:move_client(c, workspace.screen_state[c.screen].desktop_idx, i)
end
end))
end
@@ -137,7 +137,7 @@ function M.create(workspace)
function ()
if client.focus then
local c = client.focus
- workspace:move_client(c, workspace.screen_state[c.screen].desktop, i)
+ workspace:move_client(c, workspace.screen_state[c.screen].desktop_idx, i)
end
end))
end