swayfx/sway/desktop
Simon Ser ec14a00e8c Fix segfault in wlr_output_manager_v1_set_configuration
Calling wlr_output_manager_v1_set_configuration with an enabled output
and a NULL mode is incorrect if the output doesn't support modes.

When DPMS'ing an output, wlr_output_enable(output, false) is called.
This de-allocates the CRTC and sets wlr_output.current_mode to NULL.

Because we mark DPMS'ed outputs as enabled, we also need to provide a
correct output mode. Add a field to sway_output to hold the current
mode.

Closes: https://github.com/swaywm/wlroots/issues/1867
2019-10-27 10:51:02 -04: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 Updates per wlroots layer shell changes 2019-10-16 10:24:15 -04:00
output.c Fix segfault in wlr_output_manager_v1_set_configuration 2019-10-27 10:51:02 -04:00
render.c Fix direct scan-out flickering 2019-09-26 10:36:18 -04: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.c handle_map(): NULL out xsurface->data() to prevent crashing. 2019-10-17 11:40:16 +03:00