Darwin: Fixed the call to xp_init so that we now receive Motion notifications even

if X is not the active application.
fixes <rdar://problem/5167664> xeyes dead until window activation
(cherry picked from commit c7573379a8)
This commit is contained in:
Ben Byer 2007-11-11 04:30:00 -08:00 committed by Jeremy Huddleston
parent 512dee9087
commit 8358334180

View File

@ -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