gtk/gdk/x11
Carlos Garnacho 77b8495bc4 x11: Query pointer devices' scroll valuators on toplevel enter events
We used to "invalidate" scroll valuators, so the next scroll event could
be used as the base for the next scroll deltas. This has the inconvenience
that it invariably consumes the first event received after enter and,
due to interactions with WM overeager passive button grabs, there's a
possibility we don't scroll at all if we receive interleaved "smooth
scroll" XI_Motion events and XI_Enter events (Normally triggered by regular
scroll wheels in mice).

In order to fix this, and at the expense of some sync-call overhead on
XI_Enter events (one XIQueryDevice call per slave device), query the
current scroll valuator state for all the slaves of the entered pointer,
so we do know beforehand the right base values. If new devices are plugged
while the pointer is on top of the client, the initialized scroll values
will match the valuators'.

https://bugzilla.gnome.org/show_bug.cgi?id=750994
https://bugzilla.gnome.org/show_bug.cgi?id=750870
2015-07-01 19:40:09 +02:00
..
gdkapplaunchcontext-x11.c docs: use apostrophes in *n't 2014-02-07 13:32:47 -05:00
gdkasync.c x11: Fix compiler warnings 2015-06-02 09:08:14 -04:00
gdkasync.h Change FSF Address 2012-02-27 17:06:11 +00:00
gdkcursor-x11.c X11: Make css cursor names work 2015-05-08 13:34:25 -04:00
gdkdevice-core-x11.c x11: Fix compiler warnings 2015-06-02 09:08:14 -04:00
gdkdevice-xi2.c x11: Query pointer devices' scroll valuators on toplevel enter events 2015-07-01 19:40:09 +02:00
gdkdevicemanager-core-x11.c x11: Handle XINotifyPassiveGrab/Ungrab in focus events 2013-12-04 21:22:23 -05:00
gdkdevicemanager-x11.c docs: use apostrophes in *n't 2014-02-07 13:32:47 -05:00
gdkdevicemanager-xi2.c x11: Query pointer devices' scroll valuators on toplevel enter events 2015-07-01 19:40:09 +02:00
gdkdevicemanagerprivate-core.h x11: Avoid spurious focus events on grabs 2012-03-07 15:35:21 +01:00
gdkdisplay-x11.c gtk3: add randr 1.5 monitor support 2015-05-21 23:09:04 -04:00
gdkdisplay-x11.h gtk3: add randr 1.5 monitor support 2015-05-21 23:09:04 -04:00
gdkdisplaymanager-x11.c displaymanager: Remove GInitable implementation 2013-05-02 16:17:30 +02:00
gdkdnd-x11.c x11: Fix possible leak of GdkEvents 2014-08-22 13:24:48 +02:00
gdkeventsource.c Handle recursion from motion event handlers 2013-11-11 23:17:14 -05:00
gdkeventsource.h Fix some oversights with header guards 2014-12-08 19:31:56 -05:00
gdkeventtranslator.c Change FSF Address 2012-02-27 17:06:11 +00:00
gdkeventtranslator.h Change FSF Address 2012-02-27 17:06:11 +00:00
gdkgeometry-x11.c x11: Fix compiler warnings 2015-06-02 09:08:14 -04:00
gdkglcontext-x11.c x11/gl: Fix use after free 2015-04-05 07:41:03 -04:00
gdkglcontext-x11.h Remove GdkGLProfile 2015-02-12 17:51:31 +00:00
gdkkeys-x11.c x11: Fix compiler warnings 2015-06-02 09:08:14 -04:00
gdkmain-x11.c X11: Don't assume all displays are X11 displays 2014-10-24 19:05:09 -04:00
gdkprivate-x11.h x11: Query pointer devices' scroll valuators on toplevel enter events 2015-07-01 19:40:09 +02:00
gdkproperty-x11.c Remove unused variables 2015-06-13 21:10:26 -04:00
gdkscreen-x11.c gdk: Fix a typo 2015-05-22 14:39:53 +02:00
gdkscreen-x11.h X11: Pick better system and rgba visuals for GL 2014-10-29 13:35:17 +01:00
gdkselection-x11.c docs: use Returns: consistently 2014-02-19 18:56:05 -05:00
gdksettings.c Add an XSetting for the session bus ID 2014-12-18 23:26:11 -05:00
gdktestutils-x11.c Change FSF Address 2012-02-27 17:06:11 +00:00
gdkvisual-x11.c x11: Fix compiler warnings 2015-06-02 09:08:14 -04:00
gdkwindow-x11.c x11: Relax requirements for setting ParentRelative 2015-04-13 08:26:15 -04:00
gdkwindow-x11.h x11: Keep track of the exact size in X pixels of windows 2014-11-20 12:38:04 +01:00
gdkx11applaunchcontext.h Add GDK_AVAILABLE_IN_ALL annotations in gdk 2013-05-05 15:38:46 -04:00
gdkx11cursor.h docs: don't use <type> tags 2014-01-28 00:21:26 -05:00
gdkx11device-core.h Add GDK_AVAILABLE_IN_ALL annotations in gdk 2013-05-05 15:38:46 -04:00
gdkx11device-xi2.h Add GDK_AVAILABLE_IN_ALL annotations in gdk 2013-05-05 15:38:46 -04:00
gdkx11device.h Move single-include guards inside include guards 2012-12-28 09:57:56 -05:00
gdkx11devicemanager-core.h Add GDK_AVAILABLE_IN_ALL annotations in gdk 2013-05-05 15:38:46 -04:00
gdkx11devicemanager-xi2.h Add GDK_AVAILABLE_IN_ALL annotations in gdk 2013-05-05 15:38:46 -04:00
gdkx11devicemanager-xi.h Add GDK_AVAILABLE_IN_ALL annotations in gdk 2013-05-05 15:38:46 -04:00
gdkx11devicemanager.h Move single-include guards inside include guards 2012-12-28 09:57:56 -05:00
gdkx11display.h x11: Add gdk_x11_display_set_window_scale 2013-08-20 11:15:08 +02:00
gdkx11displaymanager.h Add GDK_AVAILABLE_IN_ALL annotations in gdk 2013-05-05 15:38:46 -04:00
gdkx11dnd.h Add GDK_AVAILABLE_IN_ALL annotations in gdk 2013-05-05 15:38:46 -04:00
gdkx11glcontext.h GL: Follow naming conventions 2014-10-21 23:48:12 -04:00
gdkx11keys.h Add GDK_AVAILABLE_IN_ALL annotations in gdk 2013-05-05 15:38:46 -04:00
gdkx11property.h Drop GDK_MULTIHEAD_SAFE 2014-06-11 21:55:15 -04:00
gdkx11screen.h Drop GDK_MULTIHEAD_SAFE 2014-06-11 21:55:15 -04:00
gdkx11selection.h Add GDK_AVAILABLE_IN_ALL annotations in gdk 2013-05-05 15:38:46 -04:00
gdkx11utils.h Drop GDK_MULTIHEAD_SAFE 2014-06-11 21:55:15 -04:00
gdkx11visual.h Add GDK_AVAILABLE_IN_ALL annotations in gdk 2013-05-05 15:38:46 -04:00
gdkx11window.h docs: don't use <type> tags 2014-01-28 00:21:26 -05:00
gdkx-autocleanups.h gdk: Add support for g_autoptr() 2015-02-02 09:28:22 +01:00
gdkx.h gdk: Add support for g_autoptr() 2015-02-02 09:28:22 +01:00
gdkxftdefaults.c Change FSF Address 2012-02-27 17:06:11 +00:00
gdkxid.c docs: use Returns: consistently 2014-02-19 18:56:05 -05:00
Makefile.am gtkx: add missing header 2015-02-02 13:47:06 +01:00
MwmUtil.h Change FSF Address 2012-02-27 17:06:11 +00:00
xsettings-client.c Handle resolution changes in the GDK backend code 2014-07-13 15:35:23 -04:00
xsettings-client.h Fix font size when gdk_x11_display_set_window_scale() is used 2014-03-06 23:20:00 -05:00