aboutsummaryrefslogtreecommitdiff
path: root/sway/tree/container.c
diff options
context:
space:
mode:
authorBrian Ashworth <RedSoxFan@users.noreply.github.com>2018-10-08 15:28:09 -0400
committerGitHub <noreply@github.com>2018-10-08 15:28:09 -0400
commita999269e1cf8eeb423547a0c8ab3420f27628168 (patch)
tree3572a9e1bff58710c22638d85ce1206af3999d94 /sway/tree/container.c
parenta03955f9368cfa1c190e4194eed8437dce22eb77 (diff)
parent3f328b62768d7801f0544b31ab8f9dde3014fd1d (diff)
Merge pull request #2782 from RyanDwyer/popup-during-fullscreen
Implement popup_during_fullscreen
Diffstat (limited to 'sway/tree/container.c')
-rw-r--r--sway/tree/container.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sway/tree/container.c b/sway/tree/container.c
index 9db7aed1..1664514a 100644
--- a/sway/tree/container.c
+++ b/sway/tree/container.c
@@ -1212,3 +1212,10 @@ struct sway_container *container_split(struct sway_container *child,
return cont;
}
+
+bool container_is_transient_for(struct sway_container *child,
+ struct sway_container *ancestor) {
+ return config->popup_during_fullscreen == POPUP_SMART &&
+ child->view && ancestor->view &&
+ view_is_transient_for(child->view, ancestor->view);
+}