sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit a03955f9368cfa1c190e4194eed8437dce22eb77
parent 16e727a6541d3e44c60b116c4278b6bb9f51e3c6
Author: emersion <contact@emersion.fr>
Date:   Mon,  8 Oct 2018 19:17:40 +0200

Merge pull request #2799 from ianyfan/commands

commands: when setting urgency, check container is not null
Diffstat:
Msway/commands/urgent.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git 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");