diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-04-17 10:58:42 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-04-17 10:58:42 +1000 |
commit | a44d016e2b24a3454551c27f9252b4c419968760 (patch) | |
tree | 5ba43a1aabb8efa167a69536bf0476e8535b4d3a | |
parent | Create sway_workspace struct. (diff) | |
download | sway-a44d016e2b24a3454551c27f9252b4c419968760.tar.gz sway-a44d016e2b24a3454551c27f9252b4c419968760.tar.zst sway-a44d016e2b24a3454551c27f9252b4c419968760.zip |
Don't damage views if they're hidden by a fullscreen view.
-rw-r--r-- | sway/desktop/output.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c index 74919ccd..361a92d0 100644 --- a/sway/desktop/output.c +++ b/sway/desktop/output.c | |||
@@ -469,6 +469,12 @@ void output_damage_view(struct sway_output *output, struct sway_view *view, | |||
469 | return; | 469 | return; |
470 | } | 470 | } |
471 | 471 | ||
472 | struct sway_container *workspace = container_parent(view->swayc, | ||
473 | C_WORKSPACE); | ||
474 | if (workspace->sway_workspace->fullscreen && !view->is_fullscreen) { | ||
475 | return; | ||
476 | } | ||
477 | |||
472 | struct damage_data data = { | 478 | struct damage_data data = { |
473 | .output = output, | 479 | .output = output, |
474 | .whole = whole, | 480 | .whole = whole, |