summaryrefslogtreecommitdiff
path: root/include/sway/view.h
diff options
context:
space:
mode:
authorDrew DeVault <[email protected]>2017-11-25 16:30:15 -0500
committerDrew DeVault <[email protected]>2017-11-25 16:30:15 -0500
commit8caabe59c2e6f6174678e6c28be3381a7dabff10 (patch)
tree5425efb1f3b68e9b275d8429bba70a2b132b72c9 /include/sway/view.h
parenta57d46292694e388d74add7b0869bcafdb42b2bd (diff)
Handle view destruction properly
Diffstat (limited to 'include/sway/view.h')
-rw-r--r--include/sway/view.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sway/view.h b/include/sway/view.h
index fca444b7..2707ca78 100644
--- a/include/sway/view.h
+++ b/include/sway/view.h
@@ -14,6 +14,7 @@ struct sway_xdg_surface_v6 {
struct wl_listener request_move;
struct wl_listener request_resize;
struct wl_listener request_maximize;
+ struct wl_listener destroy;
int pending_width, pending_height;
};
@@ -38,7 +39,6 @@ enum sway_view_prop {
* tree (shell surfaces).
*/
struct sway_view {
- struct wl_listener destroy;
enum sway_view_type type;
struct sway_container *swayc;
struct wlr_surface *surface;