Merge pull request #397 from ZoiteChat/fix-issue-392

Fix Wayland text selection crash
This commit is contained in:
deepend-tildeclub authored and GitHub committed 2026-09-17 10:14:14 -07:00
commit 64a9c6e5d7
1 file changed
+1 -1
+1 -1
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;