mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-22 07:02:28 +00:00
examples/layer-shell.c: check popup exists before drawing
This commit is contained in:
parent
84c904752f
commit
e2c216a4b8
@ -87,8 +87,10 @@ static void popup_surface_frame_callback(
|
|||||||
void *data, struct wl_callback *cb, uint32_t time) {
|
void *data, struct wl_callback *cb, uint32_t time) {
|
||||||
wl_callback_destroy(cb);
|
wl_callback_destroy(cb);
|
||||||
popup_frame_callback = NULL;
|
popup_frame_callback = NULL;
|
||||||
|
if (popup) {
|
||||||
draw_popup();
|
draw_popup();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static struct wl_callback_listener popup_frame_listener = {
|
static struct wl_callback_listener popup_frame_listener = {
|
||||||
.done = popup_surface_frame_callback
|
.done = popup_surface_frame_callback
|
||||||
|
Loading…
Reference in New Issue
Block a user