From f683eb374f4f49f085e81b0a4e937e471cc1ee16 Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sat, 12 Jun 2021 09:11:00 +0200 Subject: rc: stop calling pager:set_desktop() manually Just switch to the initial desktop after creating the pager. --- rc.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rc.lua b/rc.lua index 78379e2..23702d9 100644 --- a/rc.lua +++ b/rc.lua @@ -79,8 +79,6 @@ local wsp = workspace.Workspace:new(layouts) for s in screen do local panel_width = beautiful.xresources.apply_dpi(128, s) - wsp:view(s, s.index, 1) - -- Create a promptbox for each screen mypromptbox[s] = awful.widget.prompt() @@ -98,7 +96,6 @@ for s in screen do -- Create a tasklist widget local pgr = pager.Pager:new(wsp, s) - pgr:set_desktop(wsp.desktops[s.index]) -- Widgets that are aligned to the bottom of the tool bar local layout_bottom = wibox.layout.fixed.vertical() @@ -118,6 +115,9 @@ for s in screen do -- Create the wibox mywibox[s] = awful.wibar({ position = "right", screen = s, width = panel_width }) mywibox[s]:set_widget(layout) + + -- show desktop on th screen + wsp:view(s, s.index, 1) end -- cgit v1.2.3