gdk: Remove GdkWindow.depth member variable

It's unused.
This commit is contained in:
Benjamin Otte
2016-10-27 16:24:42 +02:00
parent cd67c0d7cc
commit 6cc94ff176
5 changed files with 6 additions and 9 deletions

View File

@@ -220,7 +220,6 @@ _gdk_broadway_screen_init_root_window (GdkScreen * screen)
impl->id = 0;
window->window_type = GDK_WINDOW_ROOT;
window->depth = 24;
window->x = 0;
window->y = 0;

View File

@@ -167,7 +167,6 @@ struct _GdkWindow
GdkEventMask event_mask;
guint8 window_type;
guint8 depth;
guint8 resize_count;
gint8 toplevel_window_type;

View File

@@ -1240,11 +1240,9 @@ gdk_window_new (GdkWindow *parent,
if (attributes->wclass == GDK_INPUT_OUTPUT)
{
window->input_only = FALSE;
window->depth = window->visual->depth;
}
else
{
window->depth = 0;
window->input_only = TRUE;
}

View File

@@ -376,7 +376,6 @@ _gdk_wayland_screen_create_root_window (GdkScreen *screen,
cairo_surface_set_device_scale (impl->staging_cairo_surface, impl->scale, impl->scale);
window->window_type = GDK_WINDOW_ROOT;
window->depth = 32;
window->x = 0;
window->y = 0;

View File

@@ -641,7 +641,6 @@ _gdk_x11_screen_init_root_window (GdkScreen *screen)
impl->window_scale = x11_screen->window_scale;
window->window_type = GDK_WINDOW_ROOT;
window->depth = DefaultDepthOfScreen (x11_screen->xscreen);
window->x = 0;
window->y = 0;
@@ -915,6 +914,7 @@ _gdk_x11_display_create_window_impl (GdkDisplay *display,
unsigned int class;
const char *title;
int depth;
display_x11 = GDK_X11_DISPLAY (display);
xparent = GDK_WINDOW_XID (real_parent);
@@ -978,10 +978,14 @@ _gdk_x11_display_create_window_impl (GdkDisplay *display,
impl->override_redirect = TRUE;
}
depth = visual->depth;
}
else
{
class = InputOnly;
depth = 0;
}
if (window->width * impl->window_scale > 32767 ||
@@ -1002,7 +1006,7 @@ _gdk_x11_display_create_window_impl (GdkDisplay *display,
(window->x + window->parent->abs_x) * impl->window_scale,
(window->y + window->parent->abs_y) * impl->window_scale,
window->width * impl->window_scale, window->height * impl->window_scale,
0, window->depth, class, xvisual,
0, depth, class, xvisual,
xattributes_mask, &xattributes);
g_object_ref (window);
@@ -1159,8 +1163,6 @@ gdk_x11_window_foreign_new_for_display (GdkDisplay *display,
win->state = 0;
win->viewable = TRUE;
win->depth = attrs.depth;
g_object_ref (win);
_gdk_x11_display_add_window (display, &GDK_WINDOW_XID (win), win);