summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/sna/sna_display.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c
index 46fd81fc..a14f789d 100644
--- a/src/sna/sna_display.c
+++ b/src/sna/sna_display.c
@@ -6310,7 +6310,8 @@ void sna_mode_reset(struct sna *sna)
struct sna_output *sna_output = to_sna_output(config->output[i]);
assert(sna_output != NULL);
- assert(sna_output->dpms_mode == DPMSModeOff);
+ if (sna_output->dpms_mode != DPMSModeOff)
+ continue;
if (!sna_output->backlight.iface)
continue;