awesome/objects
Uli Schlachter 394ff06589 Fix mouse clicks on titlebars (#901)
Commit 7dad0b3b87 made awesome only ask for mouse events on the actual
client window. Obviously, this means that we no longer get reports for clicks on
the titlebar. Whoops.

Fix this by asking for mouse events on *both* the actual client window and the
frame window. The passive grab on the actual client window is actually unneeded,
but we keep it so that the fix that was done by the above commit is still
present (xev will no longer report leave/enter events just for a mouse click).

Since we now get mouse events inside of a client reported twice, the event
handling code in event.c has to be fixed to handle both cases. E.g. x/y are
relative to the top-left corner of the window and thus needs to be fixed for
titlebar size; the second click has to be ignored.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2016-05-14 16:16:24 +02:00
..
button.c Merge branch 'lua-index-handlers' of https://github.com/psychon/awesome 2016-03-06 14:19:00 +01:00
button.h Clean up header includes 2014-03-30 20:07:48 +02:00
client.c Cache a screen's workarea 2016-05-08 16:30:37 +02:00
client.h Merge pull request #713 from psychon/no_focus_window 2016-02-28 22:16:22 +01:00
drawable.c Merge branch 'lua-index-handlers' of https://github.com/psychon/awesome 2016-03-06 14:19:00 +01:00
drawable.h drawable/drawin: Pass both lua_State and stack index around 2014-12-06 10:46:45 +01:00
drawin.c Cache a screen's workarea 2016-05-08 16:30:37 +02:00
drawin.h drawin: lazily configure drawin windows 2015-08-23 15:25:23 +02:00
key.c Merge branch 'lua-index-handlers' of https://github.com/psychon/awesome 2016-03-06 14:19:00 +01:00
key.h remove encoding=utf-8 from modelines 2011-09-11 17:34:09 +02:00
screen.c Fix screen.fake_add() 2016-05-09 19:22:21 +02:00
screen.h Cache a screen's workarea 2016-05-08 16:30:37 +02:00
tag.c luaobject: Make the miss_handlers documentation private 2016-04-11 23:54:28 -04:00
tag.h tag_client: Add explicit lua_State argument 2014-12-06 11:14:59 +01:00
window.c Fix mouse clicks on titlebars (#901) 2016-05-14 16:16:24 +02:00
window.h geometry: Use the relevant rounding functions instead of integers 2016-04-18 04:20:22 -04:00