From 67c317c58d01098397d93dde66e00757446bc1c9 Mon Sep 17 00:00:00 2001 From: Riteo Date: Mon, 26 May 2025 20:33:48 +0200 Subject: [PATCH] Wayland: Add missing return in selection logic Fixup to "Wayland: Check selection devices before using them" This slipped under the radar... until for some reason optimized builds started crashing, perhaps due to timing-related shenanigans, no idea. --- platform/linuxbsd/wayland/wayland_thread.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/platform/linuxbsd/wayland/wayland_thread.cpp b/platform/linuxbsd/wayland/wayland_thread.cpp index 8122f7495eb..5f0b42ffec6 100644 --- a/platform/linuxbsd/wayland/wayland_thread.cpp +++ b/platform/linuxbsd/wayland/wayland_thread.cpp @@ -4566,6 +4566,7 @@ void WaylandThread::selection_set_text(const String &p_text) { if (ss->wl_data_device == nullptr) { DEBUG_LOG_WAYLAND_THREAD("Couldn't set selection, seat doesn't have wl_data_device."); + return; } ss->selection_data = p_text.to_utf8_buffer();