From 2d6e4ae2e8c8e5a371715c7b4ed1291769993125 Mon Sep 17 00:00:00 2001 From: Giovanni Campagna Date: Thu, 31 Jul 2014 17:41:39 +0200 Subject: 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 --- src/core/frame.c | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'src/core') 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. */ -- cgit v1.2.1