"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>
Thu, 6 Nov 2014 03:49:20 +0000 (04:49 +0100)
commita795f50268cc8b575e79920152998297b8b2db98
tree52cd99e9e9a6ed8df2593276f97e06981c0a5272
parent6e26eb1c2087363b406d95f49f372836f1733067
"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