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.
This commit is contained in:
Jasper St. Pierre 2015-01-29 23:50:20 -05:00
parent 4d23e7c202
commit 05353c1f7e
3 changed files with 0 additions and 20 deletions

View File

@ -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;
}

View File

@ -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)

View File

@ -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);