Remove XOR gc only used in removed reduced-resources mode
Remove screen.root_xor_gc; this was only used for XOR drawing in reduced-resources mode, which was removed. https://bugzilla.gnome.org/show_bug.cgi?id=602740
This commit is contained in:
parent
47af6a0bbf
commit
14987f2b21
@ -129,9 +129,6 @@ struct _MetaScreen
|
||||
|
||||
int closing;
|
||||
|
||||
/* gc for XOR on root window */
|
||||
GC root_xor_gc;
|
||||
|
||||
/* Managed by compositor.c */
|
||||
gpointer compositor_data;
|
||||
|
||||
|
@ -707,35 +707,6 @@ meta_screen_new (MetaDisplay *display,
|
||||
screen->compositor_data = NULL;
|
||||
screen->guard_window = None;
|
||||
|
||||
{
|
||||
XFontStruct *font_info;
|
||||
XGCValues gc_values;
|
||||
gulong value_mask = 0;
|
||||
|
||||
gc_values.subwindow_mode = IncludeInferiors;
|
||||
value_mask |= GCSubwindowMode;
|
||||
gc_values.function = GXinvert;
|
||||
value_mask |= GCFunction;
|
||||
gc_values.line_width = META_WIREFRAME_XOR_LINE_WIDTH;
|
||||
value_mask |= GCLineWidth;
|
||||
|
||||
font_info = XLoadQueryFont (screen->display->xdisplay, "fixed");
|
||||
|
||||
if (font_info != NULL)
|
||||
{
|
||||
gc_values.font = font_info->fid;
|
||||
value_mask |= GCFont;
|
||||
XFreeFontInfo (NULL, font_info, 1);
|
||||
}
|
||||
else
|
||||
meta_warning ("xserver doesn't have 'fixed' font.\n");
|
||||
|
||||
screen->root_xor_gc = XCreateGC (screen->display->xdisplay,
|
||||
screen->xroot,
|
||||
value_mask,
|
||||
&gc_values);
|
||||
}
|
||||
|
||||
screen->monitor_infos = NULL;
|
||||
screen->n_monitor_infos = 0;
|
||||
screen->last_monitor_index = 0;
|
||||
@ -831,7 +802,6 @@ meta_screen_free (MetaScreen *screen,
|
||||
guint32 timestamp)
|
||||
{
|
||||
MetaDisplay *display;
|
||||
XGCValues gc_values = { 0 };
|
||||
|
||||
display = screen->display;
|
||||
|
||||
@ -886,19 +856,6 @@ meta_screen_free (MetaScreen *screen,
|
||||
if (screen->work_area_later != 0)
|
||||
g_source_remove (screen->work_area_later);
|
||||
|
||||
|
||||
if (XGetGCValues (screen->display->xdisplay,
|
||||
screen->root_xor_gc,
|
||||
GCFont,
|
||||
&gc_values))
|
||||
{
|
||||
XUnloadFont (screen->display->xdisplay,
|
||||
gc_values.font);
|
||||
}
|
||||
|
||||
XFreeGC (screen->display->xdisplay,
|
||||
screen->root_xor_gc);
|
||||
|
||||
if (screen->monitor_infos)
|
||||
g_free (screen->monitor_infos);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user