Initial support for Spaces -- if you use Expose to drag an X11

window to another Space, it will work correctly (as opposed
to just leaving a ghost window).  We accomplish this by listening
for the notification from Xplugin that our window has been moved,
and then we ask X11 to move the window to the new location.
This commit is contained in:
Ben Byer 2007-11-03 05:34:19 -07:00 committed by Ben Byer
parent 169f83e366
commit 154fb6417e

View File

@ -67,6 +67,7 @@ static inline xp_error
xprConfigureWindow(xp_window_id id, unsigned int mask, xprConfigureWindow(xp_window_id id, unsigned int mask,
const xp_window_changes *values) const xp_window_changes *values)
{ {
// ErrorF("xprConfigureWindow()\n");
if (!no_configure_window) if (!no_configure_window)
return xp_configure_window(id, mask, values); return xp_configure_window(id, mask, values);
else else
@ -184,7 +185,7 @@ xprMoveFrame(RootlessFrameID wid, ScreenPtr pScreen, int newX, int newY)
wc.x = newX; wc.x = newX;
wc.y = newY; wc.y = newY;
// ErrorF("xprMoveFrame(%d, %p, %d, %d)\n", wid, pScreen, newX, newY);
xprConfigureWindow((xp_window_id) wid, XP_ORIGIN, &wc); xprConfigureWindow((xp_window_id) wid, XP_ORIGIN, &wc);
} }