Merge branch 'fix-display-selection-init' into 'gtk-3-24'

gdkdisplay-wayland: Init selection before roundtrips

See merge request GNOME/gtk!6714
This commit is contained in:
Matthias Clasen 2024-01-07 01:17:04 +00:00
commit 53d6a34e54

View File

@ -640,6 +640,7 @@ _gdk_wayland_display_open (const gchar *display_name)
} }
process_on_globals_closures (display_wayland); process_on_globals_closures (display_wayland);
display_wayland->selection = gdk_wayland_selection_new ();
/* Wait for initializing to complete. This means waiting for all /* Wait for initializing to complete. This means waiting for all
* asynchrounous roundtrips that were triggered during initial roundtrip. */ * asynchrounous roundtrips that were triggered during initial roundtrip. */
@ -684,8 +685,6 @@ _gdk_wayland_display_open (const gchar *display_name)
return NULL; return NULL;
} }
display_wayland->selection = gdk_wayland_selection_new ();
g_signal_emit_by_name (display, "opened"); g_signal_emit_by_name (display, "opened");
return display; return display;