]> icculus.org git repositories - mikachu/openbox.git/commit
"Fix" releasing the mouse button over a window.
authorMikael Magnusson <mikachu@gmail.com>
Mon, 7 Jul 2008 19:20:34 +0000 (21:20 +0200)
committerMikael Magnusson <mikachu@gmail.com>
Mon, 7 Jul 2008 19:20:34 +0000 (21:20 +0200)
commitcbbe8ee5082e1c079ab180941fa2491b8d467cf6
tree3b35dc615e7647b1e1a83ce98931a1dd56ecf324
parente9849149694af110aa850b223d8c274e3ef54be0
"Fix" releasing the mouse button over a window.

Previously if you click-drag-released the left button on the root window to a client window,
Openbox would ignore the release because we don't own the client window. Now check if we
are in a button press or not before ignoring it. The bug was we would initiate a move when
the cursor was moved over a titlebar even when the button was unpressed because the variable
didn't get cleared properly.

This fix is very ugly.
openbox/event.c
openbox/mouse.c