[PATCH weston 02/10] window: send transient flags over the wire

Tiago Vignatti tiago.vignatti at intel.com
Fri May 18 08:47:09 PDT 2012


Signed-off-by: Tiago Vignatti <tiago.vignatti at intel.com>
---
 clients/window.c |    4 ++--
 clients/window.h |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/clients/window.c b/clients/window.c
index d7b2e5c..5c4d28b 100644
--- a/clients/window.c
+++ b/clients/window.c
@@ -2695,7 +2695,7 @@ window_create(struct display *display)
 
 struct window *
 window_create_transient(struct display *display, struct window *parent,
-			int32_t x, int32_t y)
+			int32_t x, int32_t y, uint32_t flags)
 {
 	struct window *window;
 
@@ -2710,7 +2710,7 @@ window_create_transient(struct display *display, struct window *parent,
 	if (display->shell)
 		wl_shell_surface_set_transient(window->shell_surface,
 					       window->parent->shell_surface,
-					       window->x, window->y, 0);
+					       window->x, window->y, flags);
 
 	return window;
 }
diff --git a/clients/window.h b/clients/window.h
index bcb7d62..162cc34 100644
--- a/clients/window.h
+++ b/clients/window.h
@@ -197,7 +197,7 @@ struct window *
 window_create(struct display *display);
 struct window *
 window_create_transient(struct display *display, struct window *parent,
-			int32_t x, int32_t y);
+			int32_t x, int32_t y, uint32_t flags);
 
 typedef void (*menu_func_t)(struct window *window, int index, void *data);
 
-- 
1.7.9.5



More information about the wayland-devel mailing list