fixes for xdg-activation regressions (GTK3)
Two fixes for regressions related to recent xdg-activation support in GTK3.24.25, see issue #5386 (closed):
-
window: focus on window show for wayland activation
This both supersedes commit 5dca6dce wasn't accidentally wasn't included on the backport to GTK3, plus fixes it for when the application shows its main window using
gtk_widget_show
instead ofgtk_window_present
.Small notes:
-
I've conditioned the change to only Wayland as this
gdk_window_focus
call is only needed for xdg-activation (and on X11 it probably would breakfocus-on-map
). It may also be worth extracting the xdg-activation startup notification logic to some more specific method instead ofgdk_window_focus
. -
The
priv->initial_timestamp
is set when callinggtk_window_present
and the window is not visible and is used immediately ongtk_window_show
. On other cases (e.g. if the window is shown usinggtk_widget_show
) it'sGDK_CURRENT_TIME
.
-
-
gdk/wayland: save custom xdg-activation startup_id
This fixes handling of custom startup_id's using
gtk_window_set_startup_id
when xdg-activation is used.