[PATCH xserver 1/2] hw/xwin: Update for removal of AddEnabledDevice
Jon Turney
jon.turney at dronecode.org.uk
Tue Jul 19 12:35:36 UTC 2016
Update for removal of AddEnabledDevice in be5a513f. Use SetNotifyFd instead.
Signed-off-by: Jon Turney <jon.turney at dronecode.org.uk>
---
hw/xwin/InitInput.c | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/hw/xwin/InitInput.c b/hw/xwin/InitInput.c
index 6cd9e06..ae837e8 100644
--- a/hw/xwin/InitInput.c
+++ b/hw/xwin/InitInput.c
@@ -89,6 +89,18 @@ DDXRingBell(int volume, int pitch, int duration)
return;
}
+
+#ifdef HAS_DEVWINDOWS
+static void
+xwinDevWindowsHandlerNotify(int fd, int ready, void *data)
+{
+ /* This should process Windows messages, but instead all of that is delayed
+ * until the wakeup handler is called.
+ */
+ ;
+}
+#endif
+
/* See Porting Layer Definition - p. 17 */
void
InitInput(int argc, char *argv[])
@@ -129,7 +141,7 @@ InitInput(int argc, char *argv[])
}
/* Add the message queue as a device to wait for in WaitForSomething */
- AddEnabledDevice(g_fdMessageQueue);
+ SetNotifyFd(g_fdMessageQueue, xwinDevWindowsHandlerNotify, X_NOTIFY_READ, NULL);
}
#endif
--
2.8.3
More information about the xorg-devel
mailing list