mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-17 08:56:28 -05:00
xdg surface: check adding configure_idle for NULL
This commit is contained in:
parent
0e2d369106
commit
ccc84f11a4
1 changed files with 3 additions and 0 deletions
|
|
@ -195,6 +195,9 @@ uint32_t wlr_xdg_surface_schedule_configure(struct wlr_xdg_surface *surface) {
|
||||||
surface->configure_next_serial = wl_display_next_serial(display);
|
surface->configure_next_serial = wl_display_next_serial(display);
|
||||||
surface->configure_idle = wl_event_loop_add_idle(loop,
|
surface->configure_idle = wl_event_loop_add_idle(loop,
|
||||||
surface_send_configure, surface);
|
surface_send_configure, surface);
|
||||||
|
if (surface->configure_idle == NULL) {
|
||||||
|
wl_client_post_no_memory(surface->client->client);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return surface->configure_next_serial;
|
return surface->configure_next_serial;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue