From 82ed6ed9242675313e1835b18356b2b1e91fb4b0 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sat, 12 Jun 2021 09:02:09 +0200 Subject: workspace: pass the desktop to desktop:view signal Not its index. This is more convenient to use. --- rc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rc.lua') 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) -- cgit v1.2.3