[PATCH 04/17] clients: Add window_is_transient() helper to the toy toolkit window

Philip Withnall philip at tecnocode.co.uk
Mon Nov 25 10:01:33 PST 2013


From: Philip Withnall <philip.withnall at collabora.co.uk>

---
 clients/window.c | 6 ++++++
 clients/window.h | 3 +++
 2 files changed, 9 insertions(+)

diff --git a/clients/window.c b/clients/window.c
index d9f061d..6d82f17 100644
--- a/clients/window.c
+++ b/clients/window.c
@@ -3935,6 +3935,12 @@ window_is_fullscreen(struct window *window)
 	return window->type == TYPE_FULLSCREEN;
 }
 
+int
+window_is_transient(struct window *window)
+{
+	return window->type == TYPE_TRANSIENT;
+}
+
 static void
 configure_request_completed(void *data, struct wl_callback *callback, uint32_t  time)
 {
diff --git a/clients/window.h b/clients/window.h
index 66cf985..83c4a93 100644
--- a/clients/window.h
+++ b/clients/window.h
@@ -358,6 +358,9 @@ void
 window_set_buffer_type(struct window *window, enum window_buffer_type type);
 
 int
+window_is_transient(struct window *window);
+
+int
 window_is_fullscreen(struct window *window);
 
 void
-- 
1.8.3.1



More information about the wayland-devel mailing list