From 8358334180a4f8c1e73fc5647a62bcd3539dee45 Mon Sep 17 00:00:00 2001 From: Ben Byer Date: Sun, 11 Nov 2007 04:30:00 -0800 Subject: [PATCH] Darwin: Fixed the call to xp_init so that we now receive Motion notifications even if X is not the active application. fixes xeyes dead until window activation (cherry picked from commit c7573379a85a1480cc51650075078e41dafe56af) --- hw/darwin/quartz/xpr/xprScreen.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hw/darwin/quartz/xpr/xprScreen.c b/hw/darwin/quartz/xpr/xprScreen.c index 674a268ad..2db249f45 100644 --- a/hw/darwin/quartz/xpr/xprScreen.c +++ b/hw/darwin/quartz/xpr/xprScreen.c @@ -231,7 +231,8 @@ xprDisplayInit(void) else darwinScreensFound = 1; - if (xp_init(XP_IN_BACKGROUND | XP_NO_DEFERRED_UPDATES) != Success) + if (xp_init(XP_BACKGROUND_EVENTS | XP_NO_DEFERRED_UPDATES) != Success) + { FatalError("Could not initialize the Xplugin library."); xp_select_events(XP_EVENT_DISPLAY_CHANGED