mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
prevent current_mode null on output_enable(false)
The current mode was set to NULL to abuse it as state variable persisting DRM suspend/resume, this results resulted in a segfault on normal DPMS cycle. This reverts that change and uses the wlr_output enabled variable, which also persists and makes more sense.
This commit is contained in:
parent
73045a7d9d
commit
2cea430488
2 changed files with 1 additions and 3 deletions
|
|
@ -296,8 +296,6 @@ void wlr_drm_connector_enable(struct wlr_output *output, bool enable) {
|
|||
|
||||
if (enable) {
|
||||
wlr_drm_connector_start_renderer(conn);
|
||||
} else {
|
||||
output->current_mode = NULL;
|
||||
}
|
||||
|
||||
wlr_output_update_enabled(&conn->output, enable);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue