diff --git a/src/core/frame.c b/src/core/frame.c index f3e35f580..08952411d 100644 --- a/src/core/frame.c +++ b/src/core/frame.c @@ -121,9 +121,6 @@ meta_window_ensure_frame (MetaWindow *window) "Incrementing unmaps_pending on %s for reparent\n", window->desc); window->unmaps_pending += 1; } - /* window was reparented to this position */ - window->rect.x = 0; - window->rect.y = 0; stack_window.x11.xwindow = window->xwindow; meta_stack_tracker_record_remove (window->screen->stack_tracker, @@ -132,8 +129,8 @@ meta_window_ensure_frame (MetaWindow *window) XReparentWindow (window->display->xdisplay, window->xwindow, frame->xwindow, - window->rect.x, - window->rect.y); + frame->child_x, + frame->child_y); /* FIXME handle this error */ meta_error_trap_pop (window->display);