diff options
author | 2021-01-20 22:20:00 +0100 | |
---|---|---|
committer | 2021-02-25 09:40:20 -0500 | |
commit | c6e7cf1ae554f36e5120962ace779737827ad088 (patch) | |
tree | 6071546edfe33925f7f205414166e62fbfd6d819 /include | |
parent | Automatically map built-in touchscreens/tablets to built-in panels (diff) | |
download | sway-c6e7cf1ae554f36e5120962ace779737827ad088.tar.gz sway-c6e7cf1ae554f36e5120962ace779737827ad088.tar.zst sway-c6e7cf1ae554f36e5120962ace779737827ad088.zip |
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.h | 5 |
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, | |||
164 | void (*f)(struct sway_container *container, void *data), void *data); | 164 | void (*f)(struct sway_container *container, void *data), void *data); |
165 | 165 | ||
166 | /** | 166 | /** |
167 | * Returns the fullscreen container obstructing this container if it exists. | ||
168 | */ | ||
169 | struct sway_container *container_obstructing_fullscreen_container(struct sway_container *container); | ||
170 | |||
171 | /** | ||
167 | * Returns true if the given container is an ancestor of this container. | 172 | * Returns true if the given container is an ancestor of this container. |
168 | */ | 173 | */ |
169 | bool container_has_ancestor(struct sway_container *container, | 174 | bool container_has_ancestor(struct sway_container *container, |