We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8dadfd4 commit 2e7afbaCopy full SHA for 2e7afba
sway/tree/container.c
@@ -727,8 +727,12 @@ void container_set_geometry_from_floating_view(struct sway_container *con) {
727
}
728
729
bool container_is_floating(struct sway_container *container) {
730
- return !container->parent && container->workspace &&
731
- list_find(container->workspace->floating, container) != -1;
+ if (container) {
+ return !container->parent && container->workspace &&
732
+ list_find(container->workspace->floating, container) != -1;
733
+ } else {
734
+ return false;
735
+ }
736
737
738
void container_get_box(struct sway_container *container, struct wlr_box *box) {
0 commit comments