window: remove the transparent flag as unused
authorPekka Paalanen <ppaalanen@gmail.com>
Wed, 13 Feb 2013 14:17:21 +0000 (16:17 +0200)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 14 Feb 2013 17:34:31 +0000 (12:34 -0500)
This flag was always true, and never false.

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
clients/window.c

index 05f7ed8..6466491 100644 (file)
@@ -219,7 +219,6 @@ struct window {
        struct task redraw_task;
        int resize_needed;
        int type;
-       int transparent;
        int focus_count;
 
        int resizing;
@@ -1238,9 +1237,6 @@ window_create_surface(struct window *window)
        int dx = 0;
        int dy = 0;
 
-       if (!window->transparent)
-               flags |= SURFACE_OPAQUE;
-
        if (window->resizing)
                flags |= SURFACE_HINT_RESIZE;
 
@@ -3612,7 +3608,6 @@ window_create_internal(struct display *display,
                                                   surface->surface);
        }
 
-       window->transparent = 1;
        window->type = type;
        window->fullscreen_method = WL_SHELL_SURFACE_FULLSCREEN_METHOD_DEFAULT;