]> Pileus Git - ~andy/gtk/commit
x11: Cancel _NET_WM_MOVERESIZE if we get a matching ButtonRelease
authorRui Matos <tiagomatos@gmail.com>
Wed, 1 Feb 2012 17:59:23 +0000 (17:59 +0000)
committerRui Matos <tiagomatos@gmail.com>
Thu, 9 Feb 2012 22:44:09 +0000 (23:44 +0100)
commitdb2eb85e4af9d8f191fe1ade53ec85a94b326c9f
treed525c90cabc8bd2d9cd809a5f2bcdc77251436e7
parentcdc6e827202059e7aabb112bdc385c0fc826e13e
x11: Cancel _NET_WM_MOVERESIZE if we get a matching ButtonRelease

This implements the following part of the EWMH spec:

"The special value _NET_WM_MOVERESIZE_CANCEL also allows clients to cancel the
operation by sending such message if they detect the release themselves
(clients should send it if they get the button release after sending the move
resize message, indicating that the WM did not get a grab in time to get the
release)."

In particular, it fixes the case of clicking widgets that use
gdk_window_begin_[resize|move]_drag*() and the click "sticking", i.e. the
mouse button getting released but the resize or move operation remaining in
effect.

https://bugzilla.gnome.org/show_bug.cgi?id=669208
gdk/x11/gdkdisplay-x11.h
gdk/x11/gdkwindow-x11.c