frames: Remove reset_frames / unflicker_bg

This commit is contained in:
Jasper St. Pierre 2012-05-03 16:00:26 -04:00
parent 7c11e0b0eb
commit 143436c37c
5 changed files with 0 additions and 75 deletions

View File

@ -156,7 +156,6 @@ meta_window_ensure_frame (MetaWindow *window)
* style and background. * style and background.
*/ */
meta_ui_update_frame_style (window->screen->ui, frame->xwindow); meta_ui_update_frame_style (window->screen->ui, frame->xwindow);
meta_ui_reset_frame_bg (window->screen->ui, frame->xwindow);
if (window->title) if (window->title)
meta_ui_set_frame_title (window->screen->ui, meta_ui_set_frame_title (window->screen->ui,
@ -349,15 +348,6 @@ meta_frame_sync_to_window (MetaFrame *frame,
frame->rect.x + frame->rect.width, frame->rect.x + frame->rect.width,
frame->rect.y + frame->rect.height); frame->rect.y + frame->rect.height);
/* 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);
}
meta_ui_move_resize_frame (frame->window->screen->ui, meta_ui_move_resize_frame (frame->window->screen->ui,
frame->xwindow, frame->xwindow,
frame->rect.x, frame->rect.x,
@ -367,9 +357,6 @@ meta_frame_sync_to_window (MetaFrame *frame,
if (need_resize) if (need_resize)
{ {
meta_ui_reset_frame_bg (frame->window->screen->ui,
frame->xwindow);
/* If we're interactively resizing the frame, repaint /* If we're interactively resizing the frame, repaint
* it immediately so we don't start to lag. * it immediately so we don't start to lag.
*/ */

View File

@ -619,37 +619,6 @@ meta_frames_render_background (MetaFrames *frames,
meta_theme_render_background (frame->tv->style_context, cr, flags, &fgeom); meta_theme_render_background (frame->tv->style_context, cr, flags, &fgeom);
} }
void
meta_frames_reset_bg (MetaFrames *frames,
Window xwindow)
{
}
static void
set_background_none (Display *xdisplay,
Window xwindow)
{
XSetWindowAttributes attrs;
attrs.background_pixmap = None;
XChangeWindowAttributes (xdisplay, xwindow,
CWBackPixmap, &attrs);
}
void
meta_frames_unflicker_bg (MetaFrames *frames,
Window xwindow,
int target_width,
int target_height)
{
MetaUIFrame *frame;
frame = meta_frames_lookup_window (frames, xwindow);
g_return_if_fail (frame != NULL);
set_background_none (GDK_DISPLAY_XDISPLAY (gdk_display_get_default ()), frame->xwindow);
}
/* The client rectangle surrounds client window; it subtracts both /* The client rectangle surrounds client window; it subtracts both
* the visible and invisible borders from the frame window's size. * the visible and invisible borders from the frame window's size.
*/ */

View File

@ -127,13 +127,6 @@ void meta_frames_get_borders (MetaFrames *frames,
Window xwindow, Window xwindow,
MetaFrameBorders *borders); MetaFrameBorders *borders);
void meta_frames_reset_bg (MetaFrames *frames,
Window xwindow);
void meta_frames_unflicker_bg (MetaFrames *frames,
Window xwindow,
int target_width,
int target_height);
void meta_frames_render_background (MetaFrames *frames, void meta_frames_render_background (MetaFrames *frames,
Window xwindow, Window xwindow,
cairo_t *cr); cairo_t *cr);

View File

@ -443,16 +443,6 @@ meta_ui_unmap_frame (MetaUI *ui,
gdk_window_hide (window); gdk_window_hide (window);
} }
void
meta_ui_unflicker_frame_bg (MetaUI *ui,
Window xwindow,
int target_width,
int target_height)
{
meta_frames_unflicker_bg (ui->frames, xwindow,
target_width, target_height);
}
void void
meta_ui_update_frame_style (MetaUI *ui, meta_ui_update_frame_style (MetaUI *ui,
Window xwindow) Window xwindow)
@ -467,13 +457,6 @@ meta_ui_repaint_frame (MetaUI *ui,
meta_frames_repaint_frame (ui->frames, xwindow); meta_frames_repaint_frame (ui->frames, xwindow);
} }
void
meta_ui_reset_frame_bg (MetaUI *ui,
Window xwindow)
{
meta_frames_reset_bg (ui->frames, xwindow);
}
void void
meta_ui_queue_frame_draw (MetaUI *ui, meta_ui_queue_frame_draw (MetaUI *ui,
Window xwindow) Window xwindow)

View File

@ -84,13 +84,6 @@ void meta_ui_map_frame (MetaUI *ui,
void meta_ui_unmap_frame (MetaUI *ui, void meta_ui_unmap_frame (MetaUI *ui,
Window xwindow); Window xwindow);
void meta_ui_unflicker_frame_bg (MetaUI *ui,
Window xwindow,
int target_width,
int target_height);
void meta_ui_reset_frame_bg (MetaUI *ui,
Window xwindow);
void meta_ui_render_background (MetaUI *ui, void meta_ui_render_background (MetaUI *ui,
Window xwindow, Window xwindow,
cairo_t *cr); cairo_t *cr);