]> icculus.org git repositories - mikachu/openbox.git/commit
"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>
Mon, 20 Mar 2023 06:28:01 +0000 (07:28 +0100)
commit1e451abcfacf4ec9b07c3101e60822b5f1f24a88
tree3f3623669703f89467ab85040ff0d04c618befd4
parentf50091bba718bca8a37661a683a53566bc1577a3
"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