mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 17:40:40 -05:00
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:
parent
4d23e7c202
commit
05353c1f7e
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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)
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user