[client] x11: process clipboard events early

Due to the logic in the event loop property events may get filtered out
that were clipboard related. This changes ensures the clipboard event
handler code gets to run first avoiding this issue.
This commit is contained in:
Geoffrey McRae
2021-04-29 12:24:23 +10:00
parent 9015706fcb
commit 3912d3411c
3 changed files with 14 additions and 10 deletions

View File

@@ -558,6 +558,10 @@ static int x11EventThread(void * unused)
XEvent xe;
XNextEvent(x11.display, &xe);
// call the clipboard handling code
if (x11CBEventThread(xe))
continue;
switch(xe.type)
{
case ClientMessage:
@@ -666,9 +670,6 @@ static int x11EventThread(void * unused)
}
break;
}
// call the clipboard handling code
x11CBEventThread(xe);
}
return 0;