aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorlbonn <bonnans.l@gmail.com>2021-01-20 22:20:00 +0100
committerTudor Brindus <me@tbrindus.ca>2021-02-25 09:40:20 -0500
commitc6e7cf1ae554f36e5120962ace779737827ad088 (patch)
tree6071546edfe33925f7f205414166e62fbfd6d819 /include
parenteea9c6331f01729d5feb8f86a4c0bbb53012d292 (diff)
downloadsway-c6e7cf1ae554f36e5120962ace779737827ad088.tar.xz
focus: beyond fullscreen when focused explicitly
When issuing a focus command on a specific container, users expect to proceed it even if is hidden by a fullscreen window. This matches the behavior of i3.
Diffstat (limited to 'include')
-rw-r--r--include/sway/tree/container.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/sway/tree/container.h b/include/sway/tree/container.h
index 2c973f71..ddb2d683 100644
--- a/include/sway/tree/container.h
+++ b/include/sway/tree/container.h
@@ -164,6 +164,11 @@ void container_for_each_child(struct sway_container *container,
void (*f)(struct sway_container *container, void *data), void *data);
/**
+ * Returns the fullscreen container obstructing this container if it exists.
+ */
+struct sway_container *container_obstructing_fullscreen_container(struct sway_container *container);
+
+/**
* Returns true if the given container is an ancestor of this container.
*/
bool container_has_ancestor(struct sway_container *container,