display: Update apply button when switching output in "single" mode

While the configuration was updated, the apply button was not synced.
This meant users could not switch the active monitor properly.

Fixes #405
This commit is contained in:
Benjamin Berg 2019-03-07 18:56:13 +01:00 committed by Georges Basile Stavracas Neto
parent 5aa17c6984
commit 75bf1b8cd1

View file

@ -635,6 +635,8 @@ set_current_output (CcDisplayPanel *panel,
cc_display_monitor_set_active (output, TRUE);
if (panel->current_output)
cc_display_monitor_set_active (panel->current_output, FALSE);
update_apply_button (panel);
}
panel->current_output = output;