gtk2/gdk/wayland
Carlos Garnacho 4dcacff312 wayland: Use xdg-activation for non-startup initiated focus requests
Currently, we have all the plumbing in place so that GTK consumes the
startup notification ID when focusing a window through the xdg-activation
protocol.

This however misses the case that a window might be requested to be
focused with no startup ID (i.e. via interaction with the application,
not through GApplication or other application launching logic).

In this case, we let the application create a token that will be
consumed by itself. The serial used is that from the last
interaction, so the compositor will still be able to do focus prevention
logic if it applies.

Since we already do have a last serial at hand, prefer xdg-activation
all the way over the now stale gtk-shell focusing support. The timestamp
argument becomes unused, but that is a weak argument to prefer the
private protocol over the standard one. The gtk-shell protocol support
is so far left for interaction with older Mutter.
2022-03-01 11:38:51 +01:00
..
cursor gdk/wayland/cursor/os-compatibility: fix build when memfd_create is not available 2021-04-27 11:46:39 -05:00
protocol gdk/toplevel: Add gdk_toplevel_titlebar_gesture() 2021-07-29 21:39:32 +02:00
gdkapplaunchcontext-wayland.c wayland: Don't include gdkinternals.h 2021-09-24 22:50:29 +02:00
gdkcairocontext-wayland.c wayland/surface: Use wl_surface_offset() instead of x,y of attach() 2022-01-14 09:27:07 +01: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 Replace "gchar" with "char" 2020-07-25 00:47:36 +02:00
gdkdevice-wayland-private.h wayland: Make gdk_wayland_device_pad_set_feedback private 2020-10-15 12:00:00 -04:00
gdkdevice-wayland.c wayland/pointer-gestures: Receive hold gesture 2022-01-26 22:49:53 +01:00
gdkdisplay-wayland.c wayland: Keep startup_notification_id around long enough 2022-02-28 16:55:54 +00:00
gdkdisplay-wayland.h wayland/pointer-gestures: Receive hold gesture 2022-01-26 22:49:53 +01:00
gdkdrag-wayland.c wayland: Don't include gdkinternals.h 2021-09-24 22:50:29 +02:00
gdkdrop-wayland.c wayland: Don't include gdkinternals.h 2021-09-24 22:50:29 +02:00
gdkeventsource.c wayland: Don't include gdkinternals.h 2021-09-24 22:50:29 +02:00
gdkglcontext-wayland.c egl: Set the draw buffer to GL_BACK_LEFT 2021-11-03 22:53:59 +01:00
gdkglcontext-wayland.h egl: Unify contexts 2021-10-06 03:44:36 +02:00
gdkkeys-wayland.c gdk/wayland: add support for wl_seat version 7 2021-08-11 16:37:03 +02:00
gdkmonitor-wayland.c docs: Brush up the Wayland backend docs 2021-03-11 16:37:31 +00:00
gdkmonitor-wayland.h Relay the xdg_output.name to GdkMonitor 2019-06-24 15:38:36 +01:00
gdkprimary-wayland.c gdk: don't leak wayland primary selection offers 2022-02-10 20:44:32 +01:00
gdkprimary-wayland.h gdk/wayland: Replace gtk-primary-selection with primary-selection-unstable-v1 2020-09-27 16:23:42 +02:00
gdkprivate-wayland.h wayland: Don't include gdkinternals.h 2021-09-24 22:50:29 +02:00
gdkseat-wayland.h Add a public header for GdkWaylandSeat 2020-10-14 11:55:34 +01:00
gdksurface-wayland.c wayland: Use xdg-activation for non-startup initiated focus requests 2022-03-01 11:38:51 +01:00
gdksurface-wayland.h egl: Move EGLSurface handling to GdkSurface 2021-10-06 03:44:35 +02:00
gdkvulkancontext-wayland.c wayland: Don't include gdkinternals.h 2021-09-24 22:50:29 +02:00
gdkvulkancontext-wayland.h The big versioning cleanup 2018-02-06 01:16:32 -05:00
gdkwayland.h Add a public header for GdkWaylandSeat 2020-10-14 11:55:34 +01:00
gdkwaylanddevice.h Add gdk_wayland_device_get_xkb_keymap 2021-05-02 21:02:09 -04:00
gdkwaylanddisplay.h wayland: Add EGLDisplay getter 2021-05-11 12:46:03 +01: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
gdkwaylandseat.h Add a public header for GdkWaylandSeat 2020-10-14 11:55:34 +01:00
gdkwaylandsurface.h Revert "Merge branch 'gtk_egl_wayland' into 'master'" 2020-12-30 03:32:18 +00:00
meson.build Fix build with wayland-protocols subproject 2022-02-10 13:21:28 -05: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