XQuartz: Fixed names of enums to be more consistent

(cherry picked from commit c309a08806daf5d716a860c709e51eacad2c745a)
This commit is contained in:
Jeremy Huddleston 2008-03-28 17:00:08 -07:00
parent bd28839eb8
commit b8ea9f2a25
8 changed files with 82 additions and 82 deletions

View File

@ -153,7 +153,7 @@ static void message_kit_thread (SEL selector, NSObject *arg) {
tem = [infoDict objectForKey:@"CFBundleShortVersionString"]; tem = [infoDict objectForKey:@"CFBundleShortVersionString"];
[dict setObject:[NSString stringWithFormat:@"XQuartz %@ - (xorg-server %s)", tem, XSERVER_VERSION] [dict setObject:[NSString stringWithFormat:@"Xquartz %@ - (xorg-server %s)", tem, XSERVER_VERSION]
forKey:@"ApplicationVersion"]; forKey:@"ApplicationVersion"];
[self orderFrontStandardAboutPanelWithOptions: dict]; [self orderFrontStandardAboutPanelWithOptions: dict];
@ -166,7 +166,7 @@ static void message_kit_thread (SEL selector, NSObject *arg) {
static TSMDocumentID x11_document; static TSMDocumentID x11_document;
DEBUG_LOG("state=%d, _x_active=%d, \n", state, _x_active) DEBUG_LOG("state=%d, _x_active=%d, \n", state, _x_active)
if (state) { if (state) {
QuartzMessageServerThread (kXDarwinActivate, 0); QuartzMessageServerThread (kXquartzActivate, 0);
if (!_x_active) { if (!_x_active) {
if (x11_document == 0 && darwinKeymapFile == NULL) { if (x11_document == 0 && darwinKeymapFile == NULL) {
@ -178,7 +178,7 @@ static void message_kit_thread (SEL selector, NSObject *arg) {
if (x11_document != 0) ActivateTSMDocument (x11_document); if (x11_document != 0) ActivateTSMDocument (x11_document);
} }
} else { } else {
QuartzMessageServerThread (kXDarwinDeactivate, 0); QuartzMessageServerThread (kXquartzDeactivate, 0);
if (_x_active && x11_document != 0) if (_x_active && x11_document != 0)
DeactivateTSMDocument (x11_document); DeactivateTSMDocument (x11_document);
@ -246,7 +246,7 @@ static void message_kit_thread (SEL selector, NSObject *arg) {
swallow_up = 0; swallow_up = 0;
for_x = NO; for_x = NO;
#ifdef DARWIN_DDX_MISSING #ifdef DARWIN_DDX_MISSING
QuartzMessageServerThread (kXDarwinToggleFullscreen, 0); QuartzMessageServerThread (kXquartzToggleFullscreen, 0);
#endif #endif
} }
} else { } else {
@ -654,7 +654,7 @@ static NSMutableArray * cfarray_to_nsarray (CFArrayRef in) {
/* This will end up at the end of the responder chain. */ /* This will end up at the end of the responder chain. */
- (void) copy:sender { - (void) copy:sender {
QuartzMessageServerThread (kXDarwinPasteboardNotify, 1, QuartzMessageServerThread (kXquartzPasteboardNotify, 1,
AppleWMCopyToPasteboard); AppleWMCopyToPasteboard);
} }

View File

@ -103,7 +103,7 @@
{ {
[NSApp activateIgnoringOtherApps:YES]; [NSApp activateIgnoringOtherApps:YES];
QuartzMessageServerThread (kXDarwinControllerNotify, 2, QuartzMessageServerThread (kXquartzControllerNotify, 2,
AppleWMWindowMenuItem, [sender tag]); AppleWMWindowMenuItem, [sender tag]);
} }
@ -254,7 +254,7 @@
[self remove_window_menu]; [self remove_window_menu];
[self install_window_menu:list]; [self install_window_menu:list];
QuartzMessageServerThread (kXDarwinControllerNotify, 1, QuartzMessageServerThread (kXquartzControllerNotify, 1,
AppleWMWindowMenuNotify); AppleWMWindowMenuNotify);
} }
@ -539,20 +539,20 @@ objectValueForTableColumn:(NSTableColumn *)tableColumn row:(int)row
- (void) hide_window:sender - (void) hide_window:sender
{ {
if ([X11App x_active]) if ([X11App x_active])
QuartzMessageServerThread (kXDarwinControllerNotify, 1, AppleWMHideWindow); QuartzMessageServerThread (kXquartzControllerNotify, 1, AppleWMHideWindow);
else else
NSBeep (); /* FIXME: something here */ NSBeep (); /* FIXME: something here */
} }
- (IBAction)bring_to_front:sender - (IBAction)bring_to_front:sender
{ {
QuartzMessageServerThread(kXDarwinControllerNotify, 1, AppleWMBringAllToFront); QuartzMessageServerThread(kXquartzControllerNotify, 1, AppleWMBringAllToFront);
} }
- (IBAction)close_window:sender - (IBAction)close_window:sender
{ {
if ([X11App x_active]) if ([X11App x_active])
QuartzMessageServerThread (kXDarwinControllerNotify, 1, AppleWMCloseWindow); QuartzMessageServerThread (kXquartzControllerNotify, 1, AppleWMCloseWindow);
else else
[[NSApp keyWindow] performClose:sender]; [[NSApp keyWindow] performClose:sender];
} }
@ -560,7 +560,7 @@ objectValueForTableColumn:(NSTableColumn *)tableColumn row:(int)row
- (IBAction)minimize_window:sender - (IBAction)minimize_window:sender
{ {
if ([X11App x_active]) if ([X11App x_active])
QuartzMessageServerThread (kXDarwinControllerNotify, 1, AppleWMMinimizeWindow); QuartzMessageServerThread (kXquartzControllerNotify, 1, AppleWMMinimizeWindow);
else else
[[NSApp keyWindow] performMiniaturize:sender]; [[NSApp keyWindow] performMiniaturize:sender];
} }
@ -568,19 +568,19 @@ objectValueForTableColumn:(NSTableColumn *)tableColumn row:(int)row
- (IBAction)zoom_window:sender - (IBAction)zoom_window:sender
{ {
if ([X11App x_active]) if ([X11App x_active])
QuartzMessageServerThread (kXDarwinControllerNotify, 1, AppleWMZoomWindow); QuartzMessageServerThread (kXquartzControllerNotify, 1, AppleWMZoomWindow);
else else
[[NSApp keyWindow] performZoom:sender]; [[NSApp keyWindow] performZoom:sender];
} }
- (IBAction) next_window:sender - (IBAction) next_window:sender
{ {
QuartzMessageServerThread (kXDarwinControllerNotify, 1, AppleWMNextWindow); QuartzMessageServerThread (kXquartzControllerNotify, 1, AppleWMNextWindow);
} }
- (IBAction) previous_window:sender - (IBAction) previous_window:sender
{ {
QuartzMessageServerThread (kXDarwinControllerNotify, 1, AppleWMPreviousWindow); QuartzMessageServerThread (kXquartzControllerNotify, 1, AppleWMPreviousWindow);
} }
- (IBAction) enable_fullscreen_changed:sender - (IBAction) enable_fullscreen_changed:sender
@ -588,7 +588,7 @@ objectValueForTableColumn:(NSTableColumn *)tableColumn row:(int)row
int value = ![enable_fullscreen intValue]; int value = ![enable_fullscreen intValue];
#ifdef DARWIN_DDX_MISSING #ifdef DARWIN_DDX_MISSING
QuartzMessageServerThread (kXDarwinSetRootless, 1, value); QuartzMessageServerThread (kXquartzSetRootless, 1, value);
#endif #endif
[NSApp prefs_set_boolean:@PREFS_ROOTLESS value:value]; [NSApp prefs_set_boolean:@PREFS_ROOTLESS value:value];
@ -598,7 +598,7 @@ objectValueForTableColumn:(NSTableColumn *)tableColumn row:(int)row
- (IBAction) toggle_fullscreen:sender - (IBAction) toggle_fullscreen:sender
{ {
#ifdef DARWIN_DDX_MISSING #ifdef DARWIN_DDX_MISSING
QuartzMessageServerThread (kXDarwinToggleFullscreen, 0); QuartzMessageServerThread (kXquartzToggleFullscreen, 0);
#endif #endif
} }
@ -661,7 +661,7 @@ objectValueForTableColumn:(NSTableColumn *)tableColumn row:(int)row
- (IBAction) quit:sender - (IBAction) quit:sender
{ {
QuartzMessageServerThread (kXDarwinQuit, 0); QuartzMessageServerThread (kXquartzQuit, 0);
} }
- (IBAction) x11_help:sender - (IBAction) x11_help:sender
@ -684,12 +684,12 @@ objectValueForTableColumn:(NSTableColumn *)tableColumn row:(int)row
- (void) applicationDidHide:(NSNotification *)notify - (void) applicationDidHide:(NSNotification *)notify
{ {
QuartzMessageServerThread (kXDarwinControllerNotify, 1, AppleWMHideAll); QuartzMessageServerThread (kXquartzControllerNotify, 1, AppleWMHideAll);
} }
- (void) applicationDidUnhide:(NSNotification *)notify - (void) applicationDidUnhide:(NSNotification *)notify
{ {
QuartzMessageServerThread (kXDarwinControllerNotify, 1, AppleWMShowAll); QuartzMessageServerThread (kXquartzControllerNotify, 1, AppleWMShowAll);
} }
- (NSApplicationTerminateReply) applicationShouldTerminate:sender - (NSApplicationTerminateReply) applicationShouldTerminate:sender
@ -717,7 +717,7 @@ objectValueForTableColumn:(NSTableColumn *)tableColumn row:(int)row
[X11App prefs_synchronize]; [X11App prefs_synchronize];
/* shutdown the X server, it will exit () for us. */ /* shutdown the X server, it will exit () for us. */
QuartzMessageServerThread (kXDarwinQuit, 0); QuartzMessageServerThread (kXquartzQuit, 0);
/* In case it doesn't, exit anyway after a while. */ /* In case it doesn't, exit anyway after a while. */
while (sleep (10) != 0) ; while (sleep (10) != 0) ;

View File

@ -150,7 +150,7 @@ void
DarwinPrintBanner(void) DarwinPrintBanner(void)
{ {
// this should change depending on which specific server we are building // this should change depending on which specific server we are building
ErrorF("XQuartz starting:\n"); ErrorF("Xquartz starting:\n");
ErrorF("X.org Release 7.2\n"); // This is here to help fink until they fix their packages. ErrorF("X.org Release 7.2\n"); // This is here to help fink until they fix their packages.
ErrorF("X.Org X Server %s\nBuild Date: %s\n", XSERVER_VERSION, BUILD_DATE ); ErrorF("X.Org X Server %s\nBuild Date: %s\n", XSERVER_VERSION, BUILD_DATE );
} }
@ -856,7 +856,7 @@ void ddxUseMsg( void )
*/ */
void ddxGiveUp( void ) void ddxGiveUp( void )
{ {
ErrorF( "Quitting XQuartz...\n" ); ErrorF( "Quitting Xquartz...\n" );
//if (!quartzRootless) //if (!quartzRootless)
// quartzProcs->ReleaseScreens(); // quartzProcs->ReleaseScreens();

View File

@ -90,34 +90,34 @@ extern int darwinMainScreenY;
* Special ddx events understood by the X server * Special ddx events understood by the X server
*/ */
enum { enum {
kXDarwinUpdateModifiers // update all modifier keys kXquartzUpdateModifiers // update all modifier keys
= LASTEvent+1, // (from X.h list of event names) = LASTEvent+1, // (from X.h list of event names)
kXDarwinUpdateButtons, // update state of mouse buttons 2 and up kXquartzUpdateButtons, // update state of mouse buttons 2 and up
kXDarwinScrollWheel, // scroll wheel event kXquartzScrollWheel, // scroll wheel event
/* /*
* Quartz-specific events -- not used in IOKit mode * Quartz-specific events -- not used in IOKit mode
*/ */
kXDarwinActivate, // restore X drawing and cursor kXquartzActivate, // restore X drawing and cursor
kXDarwinDeactivate, // clip X drawing and switch to Aqua cursor kXquartzDeactivate, // clip X drawing and switch to Aqua cursor
kXDarwinSetRootClip, // enable or disable drawing to the X screen kXquartzSetRootClip, // enable or disable drawing to the X screen
kXDarwinQuit, // kill the X server and release the display kXquartzQuit, // kill the X server and release the display
kXDarwinReadPasteboard, // copy Mac OS X pasteboard into X cut buffer kXquartzReadPasteboard, // copy Mac OS X pasteboard into X cut buffer
kXDarwinWritePasteboard, // copy X cut buffer onto Mac OS X pasteboard kXquartzWritePasteboard, // copy X cut buffer onto Mac OS X pasteboard
kXDarwinBringAllToFront, // bring all X windows to front kXquartzBringAllToFront, // bring all X windows to front
kXDarwinToggleFullscreen, // Enable/Disable fullscreen mode kXquartzToggleFullscreen, // Enable/Disable fullscreen mode
kXDarwinSetRootless, // Set rootless mode kXquartzSetRootless, // Set rootless mode
kXDarwinSpaceChanged, // Spaces changed kXquartzSpaceChanged, // Spaces changed
/* /*
* AppleWM events * AppleWM events
*/ */
kXDarwinControllerNotify, // send an AppleWMControllerNotify event kXquartzControllerNotify, // send an AppleWMControllerNotify event
kXDarwinPasteboardNotify, // notify the WM to copy or paste kXquartzPasteboardNotify, // notify the WM to copy or paste
/* /*
* Xplugin notification events * Xplugin notification events
*/ */
kXDarwinDisplayChanged, // display configuration has changed kXquartzDisplayChanged, // display configuration has changed
kXDarwinWindowState, // window visibility state has changed kXquartzWindowState, // window visibility state has changed
kXDarwinWindowMoved, // window has moved on screen kXquartzWindowMoved, // window has moved on screen
}; };
#define ENABLE_DEBUG_LOG 1 #define ENABLE_DEBUG_LOG 1

View File

@ -152,7 +152,7 @@ static void DarwinUpdateModifiers(
/* /*
* DarwinReleaseModifiers * DarwinReleaseModifiers
* This hacky function releases all modifier keys. It should be called when X11.app * This hacky function releases all modifier keys. It should be called when X11.app
* is deactivated (kXDarwinDeactivate) to prevent modifiers from getting stuck if they * is deactivated (kXquartzDeactivate) to prevent modifiers from getting stuck if they
* are held down during a "context" switch -- otherwise, we would miss the KeyUp. * are held down during a "context" switch -- otherwise, we would miss the KeyUp.
*/ */
static void DarwinReleaseModifiers(void) { static void DarwinReleaseModifiers(void) {
@ -341,22 +341,22 @@ void ProcessInputEvents(void) {
break; break;
case MotionNotify: case MotionNotify:
ErrorF("Unexpected ButtonRelease event in DarwinProcessInputEvents\n"); ErrorF("Unexpected MotionNotify event in DarwinProcessInputEvents\n");
break; break;
case kXDarwinUpdateModifiers: case kXquartzUpdateModifiers:
ErrorF("Unexpected ButtonRelease event in DarwinProcessInputEvents\n"); ErrorF("Unexpected kXquartzUpdateModifiers event in DarwinProcessInputEvents\n");
break; break;
case kXDarwinUpdateButtons: case kXquartzUpdateButtons:
ErrorF("Unexpected XDarwinScrollWheel event in DarwinProcessInputEvents\n"); ErrorF("Unexpected kXquartzUpdateButtons event in DarwinProcessInputEvents\n");
break; break;
case kXDarwinScrollWheel: case kXquartzScrollWheel:
ErrorF("Unexpected XDarwinScrollWheel event in DarwinProcessInputEvents\n"); ErrorF("Unexpected kXquartzScrollWheel event in DarwinProcessInputEvents\n");
break; break;
case kXDarwinDeactivate: case kXquartzDeactivate:
DarwinReleaseModifiers(); DarwinReleaseModifiers();
// fall through // fall through
default: default:

View File

@ -411,24 +411,24 @@ QuartzMessageServerThread(
*/ */
void QuartzProcessEvent(xEvent *xe) { void QuartzProcessEvent(xEvent *xe) {
switch (xe->u.u.type) { switch (xe->u.u.type) {
case kXDarwinControllerNotify: case kXquartzControllerNotify:
DEBUG_LOG("kXDarwinControllerNotify\n"); DEBUG_LOG("kXquartzControllerNotify\n");
AppleWMSendEvent(AppleWMControllerNotify, AppleWMSendEvent(AppleWMControllerNotify,
AppleWMControllerNotifyMask, AppleWMControllerNotifyMask,
xe->u.clientMessage.u.l.longs0, xe->u.clientMessage.u.l.longs0,
xe->u.clientMessage.u.l.longs1); xe->u.clientMessage.u.l.longs1);
break; break;
case kXDarwinPasteboardNotify: case kXquartzPasteboardNotify:
DEBUG_LOG("kXDarwinPasteboardNotify\n"); DEBUG_LOG("kXquartzPasteboardNotify\n");
AppleWMSendEvent(AppleWMPasteboardNotify, AppleWMSendEvent(AppleWMPasteboardNotify,
AppleWMPasteboardNotifyMask, AppleWMPasteboardNotifyMask,
xe->u.clientMessage.u.l.longs0, xe->u.clientMessage.u.l.longs0,
xe->u.clientMessage.u.l.longs1); xe->u.clientMessage.u.l.longs1);
break; break;
case kXDarwinActivate: case kXquartzActivate:
DEBUG_LOG("kXDarwinActivate\n"); DEBUG_LOG("kXquartzActivate\n");
QuartzShow(xe->u.keyButtonPointer.rootX, QuartzShow(xe->u.keyButtonPointer.rootX,
xe->u.keyButtonPointer.rootY); xe->u.keyButtonPointer.rootY);
AppleWMSendEvent(AppleWMActivationNotify, AppleWMSendEvent(AppleWMActivationNotify,
@ -436,74 +436,74 @@ void QuartzProcessEvent(xEvent *xe) {
AppleWMIsActive, 0); AppleWMIsActive, 0);
break; break;
case kXDarwinDeactivate: case kXquartzDeactivate:
DEBUG_LOG("kXDarwinDeactivate\n"); DEBUG_LOG("kXquartzDeactivate\n");
AppleWMSendEvent(AppleWMActivationNotify, AppleWMSendEvent(AppleWMActivationNotify,
AppleWMActivationNotifyMask, AppleWMActivationNotifyMask,
AppleWMIsInactive, 0); AppleWMIsInactive, 0);
QuartzHide(); QuartzHide();
break; break;
case kXDarwinDisplayChanged: case kXquartzDisplayChanged:
DEBUG_LOG("kXDarwinDisplayChanged\n"); DEBUG_LOG("kXquartzDisplayChanged\n");
QuartzUpdateScreens(); QuartzUpdateScreens();
break; break;
case kXDarwinWindowState: case kXquartzWindowState:
DEBUG_LOG("kXDarwinWindowState\n"); DEBUG_LOG("kXquartzWindowState\n");
RootlessNativeWindowStateChanged(xe->u.clientMessage.u.l.longs0, RootlessNativeWindowStateChanged(xe->u.clientMessage.u.l.longs0,
xe->u.clientMessage.u.l.longs1); xe->u.clientMessage.u.l.longs1);
break; break;
case kXDarwinWindowMoved: case kXquartzWindowMoved:
DEBUG_LOG("kXDarwinWindowMoved\n"); DEBUG_LOG("kXquartzWindowMoved\n");
RootlessNativeWindowMoved ((WindowPtr)xe->u.clientMessage.u.l.longs0); RootlessNativeWindowMoved ((WindowPtr)xe->u.clientMessage.u.l.longs0);
break; break;
case kXDarwinToggleFullscreen: case kXquartzToggleFullscreen:
DEBUG_LOG("kXDarwinToggleFullscreen\n"); DEBUG_LOG("kXquartzToggleFullscreen\n");
#ifdef DARWIN_DDX_MISSING #ifdef DARWIN_DDX_MISSING
if (quartzEnableRootless) QuartzSetFullscreen(!quartzHasRoot); if (quartzEnableRootless) QuartzSetFullscreen(!quartzHasRoot);
else if (quartzHasRoot) QuartzHide(); else if (quartzHasRoot) QuartzHide();
else QuartzShow(); else QuartzShow();
#else #else
// ErrorF("kXDarwinToggleFullscreen not implemented\n"); // ErrorF("kXquartzToggleFullscreen not implemented\n");
#endif #endif
break; break;
case kXDarwinSetRootless: case kXquartzSetRootless:
DEBUG_LOG("kXDarwinSetRootless\n"); DEBUG_LOG("kXquartzSetRootless\n");
#ifdef DARWIN_DDX_MISSING #ifdef DARWIN_DDX_MISSING
QuartzSetRootless(xe->u.clientMessage.u.l.longs0); QuartzSetRootless(xe->u.clientMessage.u.l.longs0);
if (!quartzEnableRootless && !quartzHasRoot) QuartzHide(); if (!quartzEnableRootless && !quartzHasRoot) QuartzHide();
#else #else
// ErrorF("kXDarwinSetRootless not implemented\n"); // ErrorF("kXquartzSetRootless not implemented\n");
#endif #endif
break; break;
case kXDarwinSetRootClip: case kXquartzSetRootClip:
QuartzSetRootClip((BOOL)xe->u.clientMessage.u.l.longs0); QuartzSetRootClip((BOOL)xe->u.clientMessage.u.l.longs0);
break; break;
case kXDarwinQuit: case kXquartzQuit:
GiveUp(0); GiveUp(0);
break; break;
case kXDarwinReadPasteboard: case kXquartzReadPasteboard:
QuartzReadPasteboard(); QuartzReadPasteboard();
break; break;
case kXDarwinWritePasteboard: case kXquartzWritePasteboard:
QuartzWritePasteboard(); QuartzWritePasteboard();
break; break;
case kXDarwinBringAllToFront: case kXquartzBringAllToFront:
DEBUG_LOG("kXDarwinBringAllToFront\n"); DEBUG_LOG("kXquartzBringAllToFront\n");
RootlessOrderAllWindows(); RootlessOrderAllWindows();
break; break;
case kXDarwinSpaceChanged: case kXquartzSpaceChanged:
DEBUG_LOG("kXDarwinSpaceChanged\n"); DEBUG_LOG("kXquartzSpaceChanged\n");
QuartzSpaceChanged(xe->u.clientMessage.u.l.longs0); QuartzSpaceChanged(xe->u.clientMessage.u.l.longs0);
break; break;
default: default:

View File

@ -45,7 +45,7 @@ typedef struct darwinKeyboardInfo_struct {
unsigned char modifierKeycodes[32][2]; unsigned char modifierKeycodes[32][2];
} darwinKeyboardInfo; } darwinKeyboardInfo;
/* These functions need to be implemented by XQuartz, XDarwin, etc. */ /* These functions need to be implemented by Xquartz, XDarwin, etc. */
void DarwinKeyboardReload(DeviceIntPtr pDev); void DarwinKeyboardReload(DeviceIntPtr pDev);
Bool QuartzReadSystemKeymap(darwinKeyboardInfo *info); Bool QuartzReadSystemKeymap(darwinKeyboardInfo *info);
unsigned int QuartzSystemKeymapSeed(void); unsigned int QuartzSystemKeymapSeed(void);

View File

@ -67,7 +67,7 @@ static void eventHandler(unsigned int type, const void *arg,
switch (type) { switch (type) {
case XP_EVENT_DISPLAY_CHANGED: case XP_EVENT_DISPLAY_CHANGED:
DEBUG_LOG("XP_EVENT_DISPLAY_CHANGED\n"); DEBUG_LOG("XP_EVENT_DISPLAY_CHANGED\n");
QuartzMessageServerThread(kXDarwinDisplayChanged, 0); QuartzMessageServerThread(kXquartzDisplayChanged, 0);
break; break;
case XP_EVENT_WINDOW_STATE_CHANGED: case XP_EVENT_WINDOW_STATE_CHANGED:
@ -75,7 +75,7 @@ static void eventHandler(unsigned int type, const void *arg,
const xp_window_state_event *ws_arg = arg; const xp_window_state_event *ws_arg = arg;
DEBUG_LOG("XP_EVENT_WINDOW_STATE_CHANGED: id=%d, state=%d\n", ws_arg->id, ws_arg->state); DEBUG_LOG("XP_EVENT_WINDOW_STATE_CHANGED: id=%d, state=%d\n", ws_arg->id, ws_arg->state);
QuartzMessageServerThread(kXDarwinWindowState, 2, QuartzMessageServerThread(kXquartzWindowState, 2,
ws_arg->id, ws_arg->state); ws_arg->id, ws_arg->state);
} else { } else {
DEBUG_LOG("XP_EVENT_WINDOW_STATE_CHANGED: ignored\n"); DEBUG_LOG("XP_EVENT_WINDOW_STATE_CHANGED: ignored\n");
@ -87,7 +87,7 @@ static void eventHandler(unsigned int type, const void *arg,
if (arg_size == sizeof(xp_window_id)) { if (arg_size == sizeof(xp_window_id)) {
xp_window_id id = * (xp_window_id *) arg; xp_window_id id = * (xp_window_id *) arg;
WindowPtr pWin = xprGetXWindow(id); WindowPtr pWin = xprGetXWindow(id);
QuartzMessageServerThread(kXDarwinWindowMoved, 1, pWin); QuartzMessageServerThread(kXquartzWindowMoved, 1, pWin);
} }
break; break;
@ -110,7 +110,7 @@ static void eventHandler(unsigned int type, const void *arg,
ErrorF("XP_EVENT_SPACE_CHANGED\n"); ErrorF("XP_EVENT_SPACE_CHANGED\n");
if(arg_size == sizeof(uint32_t)) { if(arg_size == sizeof(uint32_t)) {
uint32_t space_id = *(uint32_t *)arg; uint32_t space_id = *(uint32_t *)arg;
QuartzMessageServerThread(kXDarwinSpaceChanged, 1, space_id); QuartzMessageServerThread(kXquartzSpaceChanged, 1, space_id);
} }
break; break;
default: default: