aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-03-24 18:00:01 -0400
committerDrew DeVault <sir@cmpwn.com>2018-03-27 18:50:32 -0400
commitd1c0e6fe2c21b4c7f651a82fb7342b54a4989c39 (patch)
tree2267e9a27e454f09c3145ddbffaa1ec91de9b556 /include/wlr
parentb73c4f48c10ae79a33d1611fb641d22b8b619c39 (diff)
Add layer_surface.close
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_layer_shell.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/wlr/types/wlr_layer_shell.h b/include/wlr/types/wlr_layer_shell.h
index 3002345d..5d9feb27 100644
--- a/include/wlr/types/wlr_layer_shell.h
+++ b/include/wlr/types/wlr_layer_shell.h
@@ -67,7 +67,7 @@ struct wlr_layer_surface {
const char *namespace;
enum zwlr_layer_shell_v1_layer layer;
- bool added, configured, mapped;
+ bool added, configured, mapped, closed;
uint32_t configure_serial;
struct wl_event_source *configure_idle;
uint32_t configure_next_serial;
@@ -99,4 +99,9 @@ void wlr_layer_shell_destroy(struct wlr_layer_shell *layer_shell);
void wlr_layer_surface_configure(struct wlr_layer_surface *surface,
uint32_t width, uint32_t height);
+/**
+ * Unmaps this layer surface and notifies the client that it has been closed.
+ */
+void wlr_layer_surface_close(struct wlr_layer_surface *surface);
+
#endif