diff options
Diffstat (limited to 'sway/tree/workspace.c')
-rw-r--r-- | sway/tree/workspace.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/tree/workspace.c b/sway/tree/workspace.c index 476c2568..ffcbe933 100644 --- a/sway/tree/workspace.c +++ b/sway/tree/workspace.c | |||
@@ -498,7 +498,7 @@ bool workspace_is_empty(struct sway_workspace *ws) { | |||
498 | // Sticky views are not considered to be part of this workspace | 498 | // Sticky views are not considered to be part of this workspace |
499 | for (int i = 0; i < ws->floating->length; ++i) { | 499 | for (int i = 0; i < ws->floating->length; ++i) { |
500 | struct sway_container *floater = ws->floating->items[i]; | 500 | struct sway_container *floater = ws->floating->items[i]; |
501 | if (!floater->is_sticky) { | 501 | if (!container_is_sticky(floater)) { |
502 | return false; | 502 | return false; |
503 | } | 503 | } |
504 | } | 504 | } |
@@ -819,7 +819,7 @@ size_t workspace_num_tiling_views(struct sway_workspace *ws) { | |||
819 | } | 819 | } |
820 | 820 | ||
821 | static void count_sticky_containers(struct sway_container *con, void *data) { | 821 | static void count_sticky_containers(struct sway_container *con, void *data) { |
822 | if (container_is_floating(con) && con->is_sticky) { | 822 | if (container_is_sticky(con)) { |
823 | size_t *count = data; | 823 | size_t *count = data; |
824 | *count += 1; | 824 | *count += 1; |
825 | } | 825 | } |