aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--types/wlr_output.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/types/wlr_output.c b/types/wlr_output.c
index 514efea4..3316653a 100644
--- a/types/wlr_output.c
+++ b/types/wlr_output.c
@@ -480,12 +480,13 @@ static void output_pending_resolution(struct wlr_output *output, int *width,
case WLR_OUTPUT_STATE_MODE_FIXED:
*width = output->pending.mode->width;
*height = output->pending.mode->height;
- break;
+ return;
case WLR_OUTPUT_STATE_MODE_CUSTOM:
*width = output->pending.custom_mode.width;
*height = output->pending.custom_mode.height;
- break;
+ return;
}
+ abort();
} else {
*width = output->width;
*height = output->height;