From 54034803dc1a5f05347b66c465837e740993e79a Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Mon, 9 Jul 2012 23:31:22 +0200 Subject: [PATCH] widget: don't allow to switch tags with the mouse Because of the use of shared tags, buttons should behave as key bindings (defined in `bindings.lua`). Since I don't use mouse to switch tags, it is just easier to remove buttons. --- rc/widgets.lua | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/rc/widgets.lua b/rc/widgets.lua index b0499e1..aabfb27 100644 --- a/rc/widgets.lua +++ b/rc/widgets.lua @@ -133,26 +133,6 @@ local promptbox = {} local layoutbox = {} local taglist = {} -taglist.buttons = awful.util.table.join( - awful.button({ }, 1, - function(t) - if t.screen ~= mouse.screen then - sharetags.tag_move(t, mouse.screen) - end - awful.tag.viewonly(t) - end), - awful.button({ modkey }, 1, awful.client.movetotag), - awful.button({ }, 3, - function(t) - if t.screen ~= mouse.screen then - sharetags.tag_move(t, mouse.screen) - end - awful.tag.viewtoggle(t) - end), - awful.button({ modkey }, 3, awful.client.toggletag), - awful.button({ }, 4, awful.tag.viewnext), - awful.button({ }, 5, awful.tag.viewprev)) - local tasklist = {} tasklist.buttons = awful.util.table.join( awful.button({ }, 1, function (c) @@ -206,7 +186,7 @@ for s = 1, screen.count() do end, tasklist.buttons) -- Create the taglist - taglist[s] = sharetags.taglist(s, sharetags.label.all, taglist.buttons) + taglist[s] = sharetags.taglist(s, sharetags.label.all) -- Create the wibox wibox[s] = awful.wibox({ screen = s, fg = beautiful.fg_normal,