GetClipboardImage(): Small fix to remove unnecessary boolean

This commit is contained in:
steampuker 2026-05-18 18:23:32 +05:00
parent 80246a92fa
commit a967463885

View File

@ -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;