awesomeWM / awesome

awesome window manager
https://awesomewm.org/
GNU General Public License v2.0
6.37k stars 598 forks source link

[Question/Bug?] Mod4+Right Click passes click down to chromium? #579

Open ShadowKyogre opened 8 years ago

ShadowKyogre commented 8 years ago

My rc.lua, with the relevant sections highlighted: https://gist.github.com/ShadowKyogre/ec304a3b226cc17ea84d#file-rc-lua-L377-L399

Steps to recreate:

  1. Use the resulting rc.lua
  2. Open Chromium (there're two tabs open on picarto.tv and a livestream page, but closing those tabs doesn't seem to affect this)
  3. Press Mod4 (aka, Super Key) + right click to bring up the window actions menu.

Expected result: Window action menu pops up without Chromium's right-click menu. That menu, for now, only has "Minimize".

Actual result: Window action menu is obscured by Chromium's right-click menu.

ShadowKyogre commented 8 years ago

Found out that I did have to use the mousegrabber to completely prevent the right click from accidentally being passed down (but only for chromium, this passes the bug over to windows that used to behave properly before). Leaving this open since I'm not sure if that's intended behavior.

clientbuttons = awful.util.table.join(
    awful.button({ }, 1, function (c) client.focus = c; c:raise() end),
    awful.button({ modkey }, 1, awful.mouse.client.move),
    awful.button({ modkey }, 2, awful.mouse.client.resize),
    awful.button({ modkey }, 3, function (c)
            mousegrabber.run(function (_mouse) return true end, 'left_ptr')
            if client_actions then
                client_actions:hide()
                client_actions = nil
            else
                client_actions = create_client_actions_menu(c)
                client_actions:show()
            end
            mousegrabber.stop()
        end 
    )
)