2 Commits

Author SHA1 Message Date
deepend-tildeclub
64a9c6e5d7 Merge pull request #397 from ZoiteChat/fix-issue-392
Fix Wayland text selection crash
2026-09-17 10:14:14 -07:00
66196013bc Fix Wayland text selection crash 2026-09-16 16:23:38 -06:00

View File

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