mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-12-27 03:49:49 +01:00
Merge pull request #694 from Ongy/keep_current_mode
prevent current_mode null on output_enable(false)
This commit is contained in:
commit
7340cf19ea
2 changed files with 1 additions and 3 deletions
|
@ -81,7 +81,7 @@ static void session_signal(struct wl_listener *listener, void *data) {
|
|||
|
||||
struct wlr_drm_connector *conn;
|
||||
wl_list_for_each(conn, &drm->outputs, link){
|
||||
if (conn->output.current_mode) {
|
||||
if (conn->output.enabled) {
|
||||
wlr_output_set_mode(&conn->output, conn->output.current_mode);
|
||||
} else {
|
||||
wlr_drm_connector_enable(&conn->output, false);
|
||||
|
|
|
@ -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…
Reference in a new issue