summaryrefslogtreecommitdiff
path: root/sway/commands/urgent.c
diff options
context:
space:
mode:
authorBrian Ashworth <[email protected]>2018-10-08 15:18:49 -0400
committerGitHub <[email protected]>2018-10-08 15:18:49 -0400
commit3f328b62768d7801f0544b31ab8f9dde3014fd1d (patch)
tree3572a9e1bff58710c22638d85ce1206af3999d94 /sway/commands/urgent.c
parentd21d2c8665f8fdaad719bb81cc636052f7c1d1a1 (diff)
parenta03955f9368cfa1c190e4194eed8437dce22eb77 (diff)
Merge branch 'master' into popup-during-fullscreen
Diffstat (limited to 'sway/commands/urgent.c')
-rw-r--r--sway/commands/urgent.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/commands/urgent.c b/sway/commands/urgent.c
index 53c37d4d..4f283c55 100644
--- a/sway/commands/urgent.c
+++ b/sway/commands/urgent.c
@@ -12,6 +12,9 @@ struct cmd_results *cmd_urgent(int argc, char **argv) {
return error;
}
struct sway_container *container = config->handler_context.container;
+ if (!container) {
+ return cmd_results_new(CMD_FAILURE, "urgent", "No current container");
+ }
if (!container->view) {
return cmd_results_new(CMD_INVALID, "urgent",
"Only views can be urgent");