[PATCH weston 10/12] window: remove the transparent flag as unused

Pekka Paalanen ppaalanen at gmail.com
Wed Feb 13 06:17:21 PST 2013


This flag was always true, and never false.

Signed-off-by: Pekka Paalanen <ppaalanen at gmail.com>
---
 clients/window.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/clients/window.c b/clients/window.c
index 17f13b9..2260b87 100644
--- a/clients/window.c
+++ b/clients/window.c
@@ -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;
 
-- 
1.7.12.4



More information about the wayland-devel mailing list