diff options
author | Victor Kareh <[email protected]> | 2019-05-23 12:50:54 -0400 |
---|---|---|
committer | Victor Kareh <[email protected]> | 2019-06-05 10:49:37 -0400 |
commit | 094a7e7054de6d356cd1167088235c9c06ccbe97 (patch) | |
tree | 0798bff73a57ff570195dc35814ad46119507766 /src/core | |
parent | 6253f11d31e26b910c9722eeab0cb1b6df5faaa0 (diff) | |
download | marco-094a7e7054de6d356cd1167088235c9c06ccbe97.tar.bz2 marco-094a7e7054de6d356cd1167088235c9c06ccbe97.tar.xz |
frame: Make sure to offset by invisible borders when unmanaging windows
When we reparent a window to the root when we're exiting, we need to offset
the position by the invisible borders, otherwise windows will creep up and
to the left.
https://bugzilla.gnome.org/show_bug.cgi?id=660848
upstream commit:
https://gitlab.gnome.org/GNOME/metacity/commit/9fe51fd0
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/frame.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/core/frame.c b/src/core/frame.c index d4e09fbf..3c0ef935 100644 --- a/src/core/frame.c +++ b/src/core/frame.c @@ -173,6 +173,7 @@ void meta_window_destroy_frame (MetaWindow *window) { MetaFrame *frame; + MetaFrameBorders borders; if (window->frame == NULL) return; @@ -181,6 +182,8 @@ meta_window_destroy_frame (MetaWindow *window) frame = window->frame; + meta_frame_calc_borders (frame, &borders); + meta_bell_notify_frame_destroy (frame); /* Unparent the client window; it may be destroyed, @@ -204,8 +207,8 @@ meta_window_destroy_frame (MetaWindow *window) * coordinates here means we'll need to ensure a configure * notify event is sent; see bug 399552. */ - window->frame->rect.x, - window->frame->rect.y); + window->frame->rect.x + borders.invisible.left, + window->frame->rect.y + borders.invisible.top); meta_error_trap_pop (window->display, FALSE); meta_ui_destroy_frame_window (window->screen->ui, frame->xwindow); |