]> Pileus Git - ~andy/gtk/commit
Don't expose a temporary grab during a scrollwheel button press/release cycle.
authorAlexander Larsson <alexl@redhat.com>
Wed, 21 Jan 2009 13:42:46 +0000 (14:42 +0100)
committerAlexander Larsson <alex@localhost.localdomain>
Thu, 2 Apr 2009 08:15:21 +0000 (10:15 +0200)
commit8a0ef57ba31b16a07ae2bfea99985a3ae9dc1800
tree9e0d7a839e783aff21775d1ff2cb20abbe8a3244
parent7cebc68bdec4fb7daefff21cb285ec7b554651b0
Don't expose a temporary grab during a scrollwheel button press/release cycle.

If we do this there is a short window where we think there is a grab, and
if we generate a client side pointer motion event in this time (e.g. from
a window move) we could be delivering that according to the grab. But in
the Xserver that grab is infinitely short as it sends Press and then
Release immediately.

To see a problem from this, try using the scrollwheel to quickly scroll
in the testgtk list of buttons.
gdk/x11/gdkevents-x11.c