After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 634236 - Tablet input problems in GDK_NATIVE_WINDOWS mode
Tablet input problems in GDK_NATIVE_WINDOWS mode
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: Class: GdkDevice
2.20.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
Carlos Garnacho
: 635241 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2010-11-07 19:16 UTC by Dmitry Groshev
Modified: 2018-02-10 04:39 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Dmitry Groshev 2010-11-07 19:16:06 UTC
With GTK+ 2.20.0, if "GDK_NATIVE_WINDOWS=1" is set in the environment and a program uses a drawing tablet as an extended input device, two problems arise, making the tablet unusable.

First problem is that "ignore_core_events" logic does not work - for each stylus motion event (with pressure axis etc.), a core pointer motion event (with only X and Y, naturally) gets reported to the same window first.
This is because "ignore_core_events" flag in GdkDisplay structure is tested only by proxy_button_event() and proxy_pointer_event(), which do not even get called from _gdk_windowing_got_event() if "_gdk_native_windows" flag is set.

Second problem is that in most circumstances, the coordinates for stylus motion event are reported wrong (offset from those in the paired Core Pointer event). This is because ConfigureNotify from when window manager positions the main window, doesn't result in gdk_event_translate() calling _gdk_input_configure_event() when input window is attached NOT to the main window itself, but to one of its subwindows. And the root coordinates for the input window remain those set initially by gdk_input_set_extension_events().

This breakage resulted from the "Initial version of input support" changeset.
http://git.gnome.org/browse/gtk+/commit/?id=7372379c24d183aa23e33cef031b774a5cb25ce4
Comment 1 Ben Anderson 2010-11-19 07:23:40 UTC
*** Bug 635241 has been marked as a duplicate of this bug. ***
Comment 2 Matthias Clasen 2018-02-10 04:39:08 UTC
We're moving to gitlab! As part of this move, we are closing bugs that haven't seen activity in more than 5 years. If this issue is still imporant to you and
still relevant with GTK+ 3.22 or master, please consider creating a gitlab issue
for it.