diff options
Diffstat (limited to 'sway/commands/titlebar_border_thickness.c')
-rw-r--r-- | sway/commands/titlebar_border_thickness.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sway/commands/titlebar_border_thickness.c b/sway/commands/titlebar_border_thickness.c index 3c5e9ba1..7c27c163 100644 --- a/sway/commands/titlebar_border_thickness.c +++ b/sway/commands/titlebar_border_thickness.c | |||
@@ -21,7 +21,12 @@ struct cmd_results *cmd_titlebar_border_thickness(int argc, char **argv) { | |||
21 | 21 | ||
22 | for (int i = 0; i < root->outputs->length; ++i) { | 22 | for (int i = 0; i < root->outputs->length; ++i) { |
23 | struct sway_output *output = root->outputs->items[i]; | 23 | struct sway_output *output = root->outputs->items[i]; |
24 | arrange_workspace(output_get_active_workspace(output)); | 24 | struct sway_workspace *ws = output_get_active_workspace(output); |
25 | if (!sway_assert(ws, "Expected output to have a workspace")) { | ||
26 | return cmd_results_new(CMD_FAILURE, | ||
27 | "Expected output to have a workspace"); | ||
28 | } | ||
29 | arrange_workspace(ws); | ||
25 | output_damage_whole(output); | 30 | output_damage_whole(output); |
26 | } | 31 | } |
27 | 32 | ||