From 2c61549f8fb5817a872a19c7f7124814ca8cc191 Mon Sep 17 00:00:00 2001 From: smaslovski Date: Tue, 14 Jul 2020 00:11:25 +0100 Subject: [PATCH] Fix a spurios text paste.... This fixes the issue with layout switching when clicking on the layout icon widget ("Errors with example.rc.lua #89"). Also, Debian bug #922834 (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=922834). --- example.rc.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/example.rc.lua b/example.rc.lua index 2c4c5bc..373b90c 100644 --- a/example.rc.lua +++ b/example.rc.lua @@ -281,10 +281,10 @@ awful.screen.connect_for_each_screen(function(s) -- We need one layoutbox per screen. s.mylayoutbox = awful.widget.layoutbox(s) s.mylayoutbox:buttons(awful.util.table.join( - awful.button({ }, 1, function () awful.layout.inc(layouts, 1) end), - awful.button({ }, 3, function () awful.layout.inc(layouts, -1) end), - awful.button({ }, 4, function () awful.layout.inc(layouts, 1) end), - awful.button({ }, 5, function () awful.layout.inc(layouts, -1) end))) + awful.button({ }, 1, function () awful.layout.inc(awful.layout.layouts, 1) end), + awful.button({ }, 3, function () awful.layout.inc(awful.layout.layouts, -1) end), + awful.button({ }, 4, function () awful.layout.inc(awful.layout.layouts, 1) end), + awful.button({ }, 5, function () awful.layout.inc(awful.layout.layouts, -1) end))) -- Create a taglist widget s.mytaglist = awful.widget.taglist(s, awful.widget.taglist.filter.all, taglist_buttons)