mirror of
https://github.com/swaywm/sway.git
synced 2025-11-08 13:29:50 -05:00
slight fix
This commit is contained in:
parent
274e56a602
commit
4df64127e9
3 changed files with 25 additions and 5 deletions
|
|
@ -524,6 +524,19 @@ void set_view_visibility(swayc_t *view, void *data) {
|
|||
if (!ASSERT_NONNULL(view)) {
|
||||
return;
|
||||
}
|
||||
// TODO add something like this.
|
||||
// if (container->type == C_ROOT) {
|
||||
// container->visible = true;
|
||||
// } else {
|
||||
// // Inherit visibility
|
||||
// swayc_t *parent = container->parent;
|
||||
// container->visible = parent->visible;
|
||||
// // special cases where visibility depends on focus
|
||||
// if (parent->type == C_OUTPUT || parent->layout == L_TABBED ||
|
||||
// parent->layout == L_STACKED) {
|
||||
// container->visible = parent->focused == container;
|
||||
// }
|
||||
// }
|
||||
bool visible = *(bool *)data;
|
||||
if (view->type == C_VIEW) {
|
||||
wlc_view_set_output(view->handle, swayc_parent_by_type(view, C_OUTPUT)->handle);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue