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;