diff options
Diffstat (limited to 'sway/commands/unmark.c')
-rw-r--r-- | sway/commands/unmark.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/commands/unmark.c b/sway/commands/unmark.c index c6251dc8..c671ed4e 100644 --- a/sway/commands/unmark.c +++ b/sway/commands/unmark.c | |||
@@ -25,7 +25,7 @@ struct cmd_results *cmd_unmark(int argc, char **argv) { | |||
25 | struct sway_view *view = NULL; | 25 | struct sway_view *view = NULL; |
26 | if (config->handler_context.using_criteria) { | 26 | if (config->handler_context.using_criteria) { |
27 | struct sway_container *container = config->handler_context.container; | 27 | struct sway_container *container = config->handler_context.container; |
28 | if (!container->view) { | 28 | if (!container || !container->view) { |
29 | return cmd_results_new(CMD_INVALID, "unmark", | 29 | return cmd_results_new(CMD_INVALID, "unmark", |
30 | "Only views can have marks"); | 30 | "Only views can have marks"); |
31 | } | 31 | } |