From f3f3c94831f3d92ff47a18571c54a557fee6204b Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Wed, 28 May 2014 10:49:42 -0400 Subject: [PATCH] frame: Don't reset window->rect --- src/core/frame.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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);