clients: Add window_is_transient() helper to the toy toolkit window
authorPhilip Withnall <philip.withnall@collabora.co.uk>
Mon, 25 Nov 2013 18:01:33 +0000 (18:01 +0000)
committerKristian Høgsberg <krh@bitplanet.net>
Mon, 2 Dec 2013 19:44:50 +0000 (11:44 -0800)
clients/window.c
clients/window.h

index a201ebb..0b40edb 100644 (file)
@@ -3976,6 +3976,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)
 {
index 63ed788..777bfbc 100644 (file)
@@ -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