diff options
author | Luca Bacci <luca.bacci982@gmail.com> | 2021-06-18 11:59:38 +0200 |
---|---|---|
committer | Luca Bacci <luca.bacci982@gmail.com> | 2021-08-19 15:57:38 +0200 |
commit | ad3995b1b96684e0c702284c5c1a382c8f843f24 (patch) | |
tree | 48b6d5e90793b29c51f84092041f7897aa643999 /gdk/win32/gdkevents-win32.c | |
parent | 75cc0710ace8eb13d465b247a851c541ce9151bd (diff) | |
download | gtk+-ad3995b1b96684e0c702284c5c1a382c8f843f24.tar.gz |
Make room for other API's than Wintab
Diffstat (limited to 'gdk/win32/gdkevents-win32.c')
-rw-r--r-- | gdk/win32/gdkevents-win32.c | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/gdk/win32/gdkevents-win32.c b/gdk/win32/gdkevents-win32.c index c469a886a2..db4f7d1aa7 100644 --- a/gdk/win32/gdkevents-win32.c +++ b/gdk/win32/gdkevents-win32.c @@ -3056,12 +3056,15 @@ gdk_event_translate (MSG *msg, { gdk_synthesize_surface_state (window, 0, GDK_TOPLEVEL_STATE_FOCUSED); - /* Bring any tablet contexts to the top of the overlap order when - * one of our windows is activated. - * NOTE: It doesn't seem to work well if it is done in WM_ACTIVATEAPP - * instead - */ - _gdk_wintab_set_tablet_active (); + if (_gdk_win32_tablet_input_api == GDK_WIN32_TABLET_INPUT_API_WINTAB) + { + /* Bring any tablet contexts to the top of the overlap order when + * one of our windows is activated. + * NOTE: It doesn't seem to work well if it is done in WM_ACTIVATEAPP + * instead + */ + _gdk_wintab_set_tablet_active (); + } } break; @@ -3100,11 +3103,14 @@ gdk_event_translate (MSG *msg, /* Fall through */ wintab: - event = gdk_wintab_make_event (display, msg, window); - if (event) + if (_gdk_win32_tablet_input_api == GDK_WIN32_TABLET_INPUT_API_WINTAB) { - _gdk_win32_append_event (event); - gdk_event_unref (event); + event = gdk_wintab_make_event (display, msg, window); + if (event) + { + _gdk_win32_append_event (event); + gdk_event_unref (event); + } } break; |