mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
examples/layer-shell.c: check popup exists before drawing
This commit is contained in:
parent
84c904752f
commit
e2c216a4b8
1 changed files with 3 additions and 1 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue