sway

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

commit f52af18e0d5e9eb1b28f237192cb9c22656e3247
parent e17a99287d31216233e21b0a96f559c31ff03528
Author: Ryan Dwyer <RyanDwyer@users.noreply.github.com>
Date:   Fri, 12 Oct 2018 09:21:48 +1000

Merge pull request #2821 from meakio/master

fix: cmd_sticky crash sway with empty container
Diffstat:
Msway/commands/sticky.c | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/sway/commands/sticky.c b/sway/commands/sticky.c @@ -16,6 +16,11 @@ struct cmd_results *cmd_sticky(int argc, char **argv) { return error; } struct sway_container *container = config->handler_context.container; + + if (container == NULL) { + return cmd_results_new(CMD_FAILURE, "sticky", "No current container"); + }; + if (!container_is_floating(container)) { return cmd_results_new(CMD_FAILURE, "sticky", "Can't set sticky on a tiled container");