Fix Wayland text selection crash

This commit is contained in:
2026-09-16 16:23:38 -06:00
parent 61ff308c9f
commit 66196013bc

View File

@@ -3172,7 +3172,7 @@ gtk_xtext_selection_get (GtkWidget * widget,
if (!window || !GDK_IS_WINDOW (window))
break;
display = gdk_window_get_display (window);
if (!display)
if (!display || !GDK_IS_X11_DISPLAY (display))
break;
GdkAtom encoding;
gint format;