aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-04-23 10:45:48 +0200
committerDrew DeVault <sir@cmpwn.com>2018-04-23 10:45:48 +0200
commit625bc7b8b3356a1108a7fd00513d4c164a16ba16 (patch)
treea7f9b3ba19a9b3b9a1b075284df6e98f5ba3642c
parent4575f27932a04f901e99f3b9410c1fe39a0ff342 (diff)
assert(surface->output); after new_surface emit
-rw-r--r--types/wlr_layer_shell.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/types/wlr_layer_shell.c b/types/wlr_layer_shell.c
index 78aa2536..a567b8bc 100644
--- a/types/wlr_layer_shell.c
+++ b/types/wlr_layer_shell.c
@@ -276,6 +276,7 @@ static void handle_wlr_surface_committed(struct wlr_surface *wlr_surface,
surface->added = true;
wlr_signal_emit_safe(&surface->shell->events.new_surface,
surface);
+ assert(surface->output);
}
if (surface->configured && wlr_surface_has_buffer(surface->surface) &&
!surface->mapped) {