From a967463885ff6838d6e7815749a669b3119baa7c Mon Sep 17 00:00:00 2001 From: steampuker <214028729+steampuker@users.noreply.github.com> Date: Mon, 18 May 2026 18:23:32 +0500 Subject: [PATCH] `GetClipboardImage()`: Small fix to remove unnecessary boolean --- src/platforms/rcore_desktop_glfw.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/platforms/rcore_desktop_glfw.c b/src/platforms/rcore_desktop_glfw.c index 9bf855c0f..6def8e77a 100644 --- a/src/platforms/rcore_desktop_glfw.c +++ b/src/platforms/rcore_desktop_glfw.c @@ -1082,10 +1082,9 @@ Image GetClipboardImage(void) XSync(display, 0); XEvent ev = { 0 }; - bool eventFound; // Keep calling until we get SelectionNotify - do { eventFound = XCheckTypedEvent(display, SelectionNotify, &ev); } while(!eventFound); + while (XCheckTypedEvent(display, SelectionNotify, &ev) == False); Atom actualType = { 0 }; int actualFormat = 0;