diff options
author | Giovanni Campagna <[email protected]> | 2014-07-31 17:41:39 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2019-06-16 18:12:44 +0200 |
commit | 0d821ca7744a36d8309b3698e567e2b4cec4fcee (patch) | |
tree | 7469624caf093a99ca1d4a0e45146cab3e4cb7e7 /src/core | |
parent | 514f6930bd3f22c6ccc3cddf699fd62061de7259 (diff) | |
download | marco-0d821ca7744a36d8309b3698e567e2b4cec4fcee.tar.bz2 marco-0d821ca7744a36d8309b3698e567e2b4cec4fcee.tar.xz |
ui: always set the frame background to None
This way the xserver never paints the frame background, even if
the client window is destroyed. This allows us to have clean
destroy window animation.
There is no problem with interactive resizing because applications
are using the XSync protocol, so we're not painting unless the
client has redrawn.
https://bugzilla.gnome.org/show_bug.cgi?id=734054
origin commit:
https://gitlab.gnome.org/GNOME/metacity/commit/78c283c
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/frame.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/core/frame.c b/src/core/frame.c index 2e0a0452..d47be374 100644 --- a/src/core/frame.c +++ b/src/core/frame.c @@ -113,11 +113,6 @@ meta_window_ensure_frame (MetaWindow *window) meta_display_register_x_window (window->display, &frame->xwindow, window); - /* Now that frame->xwindow is registered with window, we can set its - * background. - */ - meta_ui_reset_frame_bg (window->screen->ui, frame->xwindow); - /* Reparent the client window; it may be destroyed, * thus the error trap. We'll get a destroy notify later * and free everything. Comment in FVWM source code says @@ -354,11 +349,6 @@ meta_frame_sync_to_window (MetaFrame *frame, /* set bg to none to avoid flicker */ if (need_resize) { - meta_ui_unflicker_frame_bg (frame->window->screen->ui, - frame->xwindow, - frame->rect.width, - frame->rect.height); - /* we need new shape if we're resized */ frame->need_reapply_frame_shape = TRUE; } @@ -380,9 +370,6 @@ meta_frame_sync_to_window (MetaFrame *frame, if (need_resize) { - meta_ui_reset_frame_bg (frame->window->screen->ui, - frame->xwindow); - /* If we're interactively resizing the frame, repaint * it immediately so we don't start to lag. */ |