mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-10-18 13:28:09 +00:00
[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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user