gtk2/gdk/wayland
Jan Alexander Steffens (heftig) 7444b15d47 gdk/wayland: Clear modifiers when we lose keyboard focus
When we `Alt+Tab` away from a GTK application, it loses keyboard focus.
If we don't clear the modifiers, events from other devices that we
receive while unfocused will assume `Alt` is still pressed. This results
in e.g. Firefox navigating through the history instead of scrolling the
page when using the mouse wheel on it.

We don't get any information about modifiers while we are missing
keyboard focus, so assuming no modifiers are active is the best we can
do.

The shell sends us a modifier update immediately before we regain
keyboard focus, so the state shouldn't get out of sync.

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/2112
2020-04-02 16:18:18 -04:00
..
cursor build: gdk/wayland/cursor depends on wayland-client 2020-02-20 17:07:02 +01:00
protocol Wayland: Implement KDE's SSD protocol 2017-10-26 15:51:56 -04:00
gdkapplaunchcontext-wayland.c Drop gdk_app_launch_context_set_screen 2017-10-30 23:01:34 -04:00
gdkcairocontext-wayland.c cairocontext: Remove fallback implementations 2018-04-24 23:24:55 +02:00
gdkcairocontext-wayland.h wayland: Rewrite Cairo rendering 2018-04-24 23:16:58 +02:00
gdkclipboard-wayland.c gdk: Change some async clipboard api 2019-04-02 15:10:53 +00:00
gdkclipboard-wayland.h wayland: Implement reading the clipboard 2017-12-03 05:46:49 +01:00
gdkcursor-wayland.c wayland: Stop capping cursor scales 2020-03-13 11:13:02 -04:00
gdkdevice-wayland.c gdk/wayland: Clear modifiers when we lose keyboard focus 2020-04-02 16:18:18 -04:00
gdkdisplay-wayland.c build: Add -Wnull-dereference 2020-03-05 08:14:37 +01:00
gdkdisplay-wayland.h wayland: Stop capping cursor scales 2020-03-13 11:13:02 -04:00
gdkdrag-wayland.c wayland: Stop abusing type hints 2020-03-11 19:35:55 -04:00
gdkdrop-wayland.c gdk: Make gdk_drop_status() take preferred action 2020-03-02 04:43:56 +01:00
gdkeventsource.c Stop exporting check_event_sanity 2020-02-21 00:51:03 -05:00
gdkglcontext-wayland.c Convert all profiler times from nsec to usec 2020-02-12 10:44:17 +01:00
gdkglcontext-wayland.h GdkSurface: Rename lots of stuff from window->surface 2018-03-20 15:14:10 +01:00
gdkkeys-wayland.c docs: Fix GTK links and locations 2019-02-06 10:39:27 +01:00
gdkmonitor-wayland.c Relay the xdg_output.name to GdkMonitor 2019-06-24 15:38:36 +01:00
gdkmonitor-wayland.h Relay the xdg_output.name to GdkMonitor 2019-06-24 15:38:36 +01:00
gdkprimary-wayland.c gdk: Change some async dnd api 2019-04-02 15:11:06 +00:00
gdkprimary-wayland.h wayland: Add primary clipboard subclass 2017-12-03 05:46:49 +01:00
gdkprivate-wayland.h wayland: Stop abusing type hints 2020-03-11 19:35:55 -04:00
gdkseat-wayland.h wayland: Update cursor surface scale when output scale changes 2018-06-28 12:44:22 +02:00
gdksurface-wayland.c wayland: Implement inhibit_system_shortcuts API 2020-03-30 18:25:36 +02:00
gdkvulkancontext-wayland.c drawcontext: Only pass the region that matters 2018-04-24 23:16:58 +02:00
gdkvulkancontext-wayland.h The big versioning cleanup 2018-02-06 01:16:32 -05:00
gdkwayland.h GdkWindow -> GdkSurface: File renames 2018-03-20 11:46:11 +01:00
gdkwaylanddevice.h Use a single compilation symbol 2019-11-27 13:33:43 +00:00
gdkwaylanddisplay.h Use a single compilation symbol 2019-11-27 13:33:43 +00:00
gdkwaylandglcontext.h Use a single compilation symbol 2019-11-27 13:33:43 +00:00
gdkwaylandmonitor.h Use a single compilation symbol 2019-11-27 13:33:43 +00:00
gdkwaylandsurface.h Use a single compilation symbol 2019-11-27 13:33:43 +00:00
meson.build gdk: Remove gdk_text_property_to_utf8_list_for_display() 2020-02-23 01:59:26 +01:00
wm-button-layout-translation.c build: Don't turn off critical warnings 2017-10-06 16:03:08 +02:00
wm-button-layout-translation.h gdk: Relicense translate_wm_button_layout_to_gtk() 2017-04-27 21:05:12 +02:00