diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-10-07 20:40:05 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-10-08 22:49:59 +1000 |
commit | 832ebc896655cb5ca7689559d4e42b426d764e71 (patch) | |
tree | 1a3bc3ff7fb13d7ed5e86ad67a05739d4c4a1de3 /sway/config.c | |
parent | Merge pull request #2791 from RyanDwyer/status-command-optional (diff) | |
download | sway-832ebc896655cb5ca7689559d4e42b426d764e71.tar.gz sway-832ebc896655cb5ca7689559d4e42b426d764e71.tar.zst sway-832ebc896655cb5ca7689559d4e42b426d764e71.zip |
Implement popup_during_fullscreen
This introduces a new view_impl function: is_transient_for. Similar to
container_has_ancestor but works using the surface parents rather than
the tree.
This patch modifies view_is_visible, container_at and so on to allow
transient views to function normally when they're in front of a
fullscreen view.
Diffstat (limited to 'sway/config.c')
-rw-r--r-- | sway/config.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/config.c b/sway/config.c index 8f8ed438..070b15c8 100644 --- a/sway/config.c +++ b/sway/config.c | |||
@@ -212,6 +212,7 @@ static void config_defaults(struct sway_config *config) { | |||
212 | if (!(config->font = strdup("monospace 10"))) goto cleanup; | 212 | if (!(config->font = strdup("monospace 10"))) goto cleanup; |
213 | config->font_height = 17; // height of monospace 10 | 213 | config->font_height = 17; // height of monospace 10 |
214 | config->urgent_timeout = 500; | 214 | config->urgent_timeout = 500; |
215 | config->popup_during_fullscreen = POPUP_SMART; | ||
215 | 216 | ||
216 | // floating view | 217 | // floating view |
217 | config->floating_maximum_width = 0; | 218 | config->floating_maximum_width = 0; |