"Fix" releasing the mouse button over a window.
authorMikael Magnusson <mikachu@gmail.com>
Fri, 8 Jan 2010 17:22:18 +0000 (18:22 +0100)
committerMikael Magnusson <mikachu@gmail.com>
Sun, 19 Sep 2010 16:06:21 +0000 (18:06 +0200)
commit8c58549abc940d121af10ec1fea652a757287acc
treeec0e5a10ff8cbe6db50a5e4f07c4fe344a21e73d
parentbd47cea3cde937b108faf807d731099999745d9c
"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