diff options
author | Ben Byer <bbyer@apple.com> | 2008-03-31 20:21:24 -0700 |
---|---|---|
committer | Jeremy Huddleston <jeremyhu@freedesktop.org> | 2008-11-14 15:11:42 -0800 |
commit | aedafbea0e1c7bc780ebe7ae878f62525769aca8 (patch) | |
tree | 6d69c45eca2573a8b9dfccda0199d12bb554ea84 /hw/xquartz/xpr | |
parent | b0789365719f48c0b477b4703f2072f932246b76 (diff) |
fix compilation on systems that don't have
XP_EVENT_SPACE_CHANGED defined
(cherry picked from commit 6e833e41e2f3a84f7e5164b918737b3975517c12)
Diffstat (limited to 'hw/xquartz/xpr')
-rw-r--r-- | hw/xquartz/xpr/xprScreen.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/hw/xquartz/xpr/xprScreen.c b/hw/xquartz/xpr/xprScreen.c index b37a1d9f1..a4ee30351 100644 --- a/hw/xquartz/xpr/xprScreen.c +++ b/hw/xquartz/xpr/xprScreen.c @@ -107,6 +107,7 @@ static void eventHandler(unsigned int type, const void *arg, DRISurfaceNotify(*(xp_surface_id *) arg, kind); } break; +#ifdef XP_EVENT_SPACE_CHANGED case XP_EVENT_SPACE_CHANGED: DEBUG_LOG("XP_EVENT_SPACE_CHANGED\n"); if(arg_size == sizeof(uint32_t)) { @@ -114,6 +115,7 @@ static void eventHandler(unsigned int type, const void *arg, DarwinSendDDXEvent(kXquartzSpaceChanged, 1, space_id); } break; +#endif default: ErrorF("Unknown XP_EVENT type (%d) in xprScreen:eventHandler\n", type); } @@ -245,9 +247,11 @@ xprDisplayInit(void) xp_select_events(XP_EVENT_DISPLAY_CHANGED | XP_EVENT_WINDOW_STATE_CHANGED | XP_EVENT_WINDOW_MOVED +#ifdef XP_EVENT_SPACE_CHANGED + | XP_EVENT_SPACE_CHANGED +#endif | XP_EVENT_SURFACE_CHANGED - | XP_EVENT_SURFACE_DESTROYED - | XP_EVENT_SPACE_CHANGED, + | XP_EVENT_SURFACE_DESTROYED, eventHandler, NULL); AppleDRIExtensionInit(); |