When the target sibling doesn't allow children.
Possibly even better would be to insert a tabbed container in this case,
but leaving that for a future improvement.
Fixes #68
avoid_unsplit_crash into main When the target sibling doesn't allow children.
Possibly even better would be to insert a tabbed container in this case,
but leaving that for a future improvement.
Fixes #68
@ -90,0 +95,4 @@
}
if (!destination->pending.children) {
sway_log(SWAY_DEBUG, "do_unsplit: destination has no children list");
fprintf(stderr, "layout %d\n", destination->pending.layout);
Stray fprintf() here should be removed.
I'd omit the function names from the log messages sway_log(..."do_unsplit: "...); and sway_log(..."container_add_child: "...);. The sway_log() macro already adds the source filename and line number which is enough to identify where the log message was generated, and the general style in the Sway code base seems to be to omit function names from log messages. But if adding the function name to the log messages is useful maybe the sway_log() macro itself should also log the value of __func__ so the function name gets logged for every log message.
Confirmed that it fixes the crash.
fb67f593a5
c3d4bf23a5
No due date set.
No dependencies set.
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?