diff options
Diffstat (limited to 'sway/tree/container.c')
-rw-r--r-- | sway/tree/container.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c index b41e8dd4..58d3df34 100644 --- a/sway/tree/container.c +++ b/sway/tree/container.c | |||
@@ -727,8 +727,14 @@ void container_set_geometry_from_floating_view(struct sway_container *con) { | |||
727 | } | 727 | } |
728 | 728 | ||
729 | bool container_is_floating(struct sway_container *container) { | 729 | bool container_is_floating(struct sway_container *container) { |
730 | return !container->parent && container->workspace && | 730 | if (!container->parent && container->workspace && |
731 | list_find(container->workspace->floating, container) != -1; | 731 | list_find(container->workspace->floating, container) != -1) { |
732 | return true; | ||
733 | } | ||
734 | if (container->scratchpad) { | ||
735 | return true; | ||
736 | } | ||
737 | return false; | ||
732 | } | 738 | } |
733 | 739 | ||
734 | void container_get_box(struct sway_container *container, struct wlr_box *box) { | 740 | void container_get_box(struct sway_container *container, struct wlr_box *box) { |