diff options
author | Mikkel Oscar Lyderik <mikkeloscar@gmail.com> | 2016-04-24 22:04:26 +0200 |
---|---|---|
committer | Mikkel Oscar Lyderik <mikkeloscar@gmail.com> | 2016-04-25 00:00:49 +0200 |
commit | 856ac7d5cca35dcff2f484003fceba1217b1e491 (patch) | |
tree | e21a0e32b539d4e56966bd5e1e1f375b4c901c5c /sway | |
parent | 5a22c0f1c08eddc84a738e8de74dcfab33f41dcf (diff) |
Remove unused function
Diffstat (limited to 'sway')
-rw-r--r-- | sway/container.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sway/container.c b/sway/container.c index d54dfd96..b49b32ee 100644 --- a/sway/container.c +++ b/sway/container.c @@ -725,7 +725,8 @@ void update_visibility_output(swayc_t *container, wlc_handle output) { swayc_t *parent = container->parent; container->visible = parent->visible; // special cases where visibility depends on focus - if (parent->type == C_OUTPUT || swayc_is_tabbed_stacked(container)) { + if (parent->type == C_OUTPUT || parent->layout == L_TABBED || + parent->layout == L_STACKED) { container->visible = parent->focused == container && parent->visible; } // Set visibility and output for view @@ -813,11 +814,6 @@ void close_views(swayc_t *container) { container_map(container, close_view, NULL); } -bool swayc_is_tabbed_stacked(swayc_t *view) { - return (view->parent->layout == L_TABBED - || view->parent->layout == L_STACKED); -} - swayc_t *swayc_tabbed_stacked_parent(swayc_t *view) { swayc_t *parent = NULL; if (!ASSERT_NONNULL(view)) { |