summaryrefslogtreecommitdiff
path: root/rc.lua
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-06-12 09:02:09 +0200
committerAnton Khirnov <anton@khirnov.net>2021-06-12 09:02:09 +0200
commit82ed6ed9242675313e1835b18356b2b1e91fb4b0 (patch)
tree1f958313e52974d02524034d86d121d13e307c97 /rc.lua
parentd2779c6613a500654fb27fa47f53a3bb96b220c1 (diff)
workspace: pass the desktop to desktop:view signal
Not its index. This is more convenient to use.
Diffstat (limited to 'rc.lua')
-rw-r--r--rc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/rc.lua b/rc.lua
index 4460166..011218f 100644
--- a/rc.lua
+++ b/rc.lua
@@ -103,7 +103,7 @@ for s in screen do
wsp.signals:connect_signal("desktop:view",
function(signals, view_screen, desktop)
if view_screen == s then
- pgr:set_desktop(wsp.desktops[desktop])
+ pgr:set_desktop(desktop)
end
end)