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).
This commit is contained in:
smaslovski 2020-07-14 00:11:25 +01:00 committed by GitHub
parent 07c923765c
commit 2c61549f8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -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)