aboutsummaryrefslogtreecommitdiff
path: root/sway/commands/border.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/commands/border.c')
-rw-r--r--sway/commands/border.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/commands/border.c b/sway/commands/border.c
index 6be5b794..647663ac 100644
--- a/sway/commands/border.c
+++ b/sway/commands/border.c
@@ -75,7 +75,7 @@ struct cmd_results *cmd_border(int argc, char **argv) {
} else if (strcmp(argv[0], "pixel") == 0) {
set_border(container, B_PIXEL);
} else if (strcmp(argv[0], "csd") == 0) {
- if (!view || !view->xdg_decoration) {
+ if (!view->xdg_decoration) {
return cmd_results_new(CMD_INVALID,
"This window doesn't support client side decorations");
}