[mutter] frame: Don't redraw immediately when we resize
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] frame: Don't redraw immediately when we resize
- Date: Fri, 30 Jan 2015 18:13:58 +0000 (UTC)
commit 05353c1f7ed9c8c2d0095b92750b8bbee331a4c0
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Thu Jan 29 23:50:20 2015 -0500
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, 0 insertions(+), 20 deletions(-)
---
diff --git a/src/core/frame.c b/src/core/frame.c
index 7bcf58d..bfd1b6d 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 c9a840f..62d00a4 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 c2dda1b..a3d8b10 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]