swayfx/sway/desktop
Manuel Stoeckl 1d483c340d desktop/surface: Fix crash when timer is NULL
When many surfaces are created, sway can run out of file descriptors,
making wl_event_loop_add_timer (which creates a timerfd) fail and
return NULL. This patch posts a "no memory" error when that is the case,
and only removes the timer if it was created.

(Why "no memory"? It is not easy to distinguish between failures due to
running out of memory and failures due to running out of file
descriptors. Also, using the newer `wl_client_post_implementation_error`
function would lead to an increased version requirement for the
libwayland-server dependency.)
2019-12-24 13:03:50 +01:00
..
desktop.c Stop using wlr_output->{lx,ly} 2019-03-11 12:43:01 -04:00
idle_inhibit_v1.c idle_inhibit: fix crash during view destruction 2019-04-03 19:46:08 +03:00
layer_shell.c layer-shell: unfocus output-less layer on unmap 2019-12-10 21:09:48 -05:00
output.c output: Restore previous max_render_time behavior 2019-12-01 12:44:07 +01:00
render.c add scale_filter output config option 2019-11-29 18:13:37 +01:00
surface.c desktop/surface: Fix crash when timer is NULL 2019-12-24 13:03:50 +01:00
transaction.c Fix uninitialized read for wlr_surface_send_frame 2019-04-21 14:06:15 +03:00
xdg_shell.c Remove all wayland-server.h includes 2019-07-27 17:16:56 -04:00
xwayland.c xwayland: get_constraints using size hints 2019-11-16 10:18:26 +01:00