diff options
-rw-r--r-- | types/wlr_output.c | 5 |
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; |