diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/layer-shell.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/layer-shell.c b/examples/layer-shell.c index 114b98f6..77b2f6c3 100644 --- a/examples/layer-shell.c +++ b/examples/layer-shell.c @@ -87,7 +87,9 @@ static void popup_surface_frame_callback( void *data, struct wl_callback *cb, uint32_t time) { wl_callback_destroy(cb); popup_frame_callback = NULL; - draw_popup(); + if (popup) { + draw_popup(); + } } static struct wl_callback_listener popup_frame_listener = { |