From 05353c1f7ed9c8c2d0095b92750b8bbee331a4c0 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Thu, 29 Jan 2015 23:50:20 -0500 Subject: [PATCH] frame: Don't redraw immediately when we resize We're locked to frame sync anyway, so it doesn't make sense to try to redraw early. In casual testing, this seems to actually make things faster, as well. --- src/core/frame.c | 9 --------- src/ui/frames.c | 9 --------- src/ui/frames.h | 2 -- 3 files changed, 20 deletions(-) diff --git a/src/core/frame.c b/src/core/frame.c index 7bcf58d9a..bfd1b6d29 100644 --- a/src/core/frame.c +++ b/src/core/frame.c @@ -365,15 +365,6 @@ meta_frame_sync_to_window (MetaFrame *frame, frame->rect.width, frame->rect.height); - if (need_resize) - { - /* If we're interactively resizing the frame, repaint - * it immediately so we don't start to lag. - */ - if (frame->window->display->grab_window == frame->window) - meta_ui_frame_repaint (frame->ui_frame); - } - return need_resize; } diff --git a/src/ui/frames.c b/src/ui/frames.c index c9a840f13..62d00a423 100644 --- a/src/ui/frames.c +++ b/src/ui/frames.c @@ -749,15 +749,6 @@ meta_ui_frame_update_style (MetaUIFrame *frame) invalidate_whole_window (frame); } -void -meta_ui_frame_repaint (MetaUIFrame *frame) -{ - /* repaint everything, so the other frame don't - * lag behind if they are exposed - */ - gdk_window_process_all_updates (); -} - static void redraw_control (MetaUIFrame *frame, MetaFrameControl control) diff --git a/src/ui/frames.h b/src/ui/frames.h index c2dda1b88..a3d8b10fe 100644 --- a/src/ui/frames.h +++ b/src/ui/frames.h @@ -130,8 +130,6 @@ void meta_ui_frame_set_title (MetaUIFrame *frame, void meta_ui_frame_update_style (MetaUIFrame *frame); -void meta_ui_frame_repaint (MetaUIFrame *frame); - void meta_ui_frame_get_borders (MetaUIFrame *frame, MetaFrameBorders *borders);