mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-08-22 15:11:31 +00:00
[client] displayserver: support external event sources
Allow display servers to dispatch a caller-owned event source on their native event thread. This lets background input readers marshal events to the thread that owns application and display-server state. Poll X11 fairly when native events remain continuously available, and use bounded polling if the external descriptor cannot be registered.
This commit is contained in:
@@ -276,13 +276,14 @@ struct WaylandDSState
|
||||
_Atomic(unsigned) frameEventFlags;
|
||||
LGEvent * frameEvent;
|
||||
|
||||
struct wl_list poll; // WaylandPoll::link
|
||||
struct wl_list pollFree; // WaylandPoll::link
|
||||
LG_Lock pollLock;
|
||||
LG_Lock pollFreeLock;
|
||||
unsigned int pollWaiters;
|
||||
int epollFd;
|
||||
int displayFd;
|
||||
struct wl_list poll; // WaylandPoll::link
|
||||
struct wl_list pollFree; // WaylandPoll::link
|
||||
LG_Lock pollLock;
|
||||
LG_Lock pollFreeLock;
|
||||
unsigned int pollWaiters;
|
||||
int epollFd;
|
||||
int displayFd;
|
||||
LG_DSEventSource eventSource;
|
||||
};
|
||||
|
||||
struct WCBTransfer
|
||||
|
||||
Reference in New Issue
Block a user