diff options
author | Jeremy Huddleston <jeremy@tifa.local> | 2007-11-22 13:17:44 -0800 |
---|---|---|
committer | Jeremy Huddleston <jeremy@tifa.local> | 2007-11-22 13:17:44 -0800 |
commit | 23596291c30a85e38c00aef2c01b46d561e2916e (patch) | |
tree | a6973e64252c96ef0143d94e6c3957b3095b0d5d /hw/darwin/quartz/xpr/xprScreen.c | |
parent | 4e18c626350c7c2e0fb540aa64a98957699f3abe (diff) |
Darwin: More syncing witn xorg-server-1.2-apple
Diffstat (limited to 'hw/darwin/quartz/xpr/xprScreen.c')
-rw-r--r-- | hw/darwin/quartz/xpr/xprScreen.c | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/hw/darwin/quartz/xpr/xprScreen.c b/hw/darwin/quartz/xpr/xprScreen.c index aff190155..1b6addc49 100644 --- a/hw/darwin/quartz/xpr/xprScreen.c +++ b/hw/darwin/quartz/xpr/xprScreen.c @@ -80,21 +80,14 @@ eventHandler(unsigned int type, const void *arg, break; case XP_EVENT_WINDOW_MOVED: - DEBUG_LOG("XP_EVENT_WINDOW_MOVED\n"); - if (arg_size == sizeof(xp_window_id)) - { - xp_window_id id = * (xp_window_id *) arg; - WindowPtr pWin = xprGetXWindow(id); - BoxRec box; - xp_error retval = xp_get_window_bounds(id, &box); - if (retval != Success) { - ErrorF("Unable to find new bounds for window\n"); - break; - } - QuartzMessageServerThread(kXDarwinWindowMoved, 3, pWin, box.x1, box.y1); - } - break; - + DEBUG_LOG("XP_EVENT_WINDOW_MOVED\n"); + if (arg_size == sizeof(xp_window_id)) { + xp_window_id id = * (xp_window_id *) arg; + WindowPtr pWin = xprGetXWindow(id); + QuartzMessageServerThread(kXDarwinWindowMoved, 1, pWin); + } + break; + case XP_EVENT_SURFACE_DESTROYED: DEBUG_LOG("XP_EVENT_SURFACE_DESTROYED\n"); case XP_EVENT_SURFACE_CHANGED: |