diff options
| author | Ryan Dwyer <[email protected]> | 2018-04-17 10:58:42 +1000 | 
|---|---|---|
| committer | Ryan Dwyer <[email protected]> | 2018-04-17 10:58:42 +1000 | 
| commit | a44d016e2b24a3454551c27f9252b4c419968760 (patch) | |
| tree | 5ba43a1aabb8efa167a69536bf0476e8535b4d3a /sway | |
| parent | c685ef081f090d1e15428f55426e02f2274312d0 (diff) | |
Don't damage views if they're hidden by a fullscreen view.
Diffstat (limited to 'sway')
| -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,  		return;  	} +	struct sway_container *workspace = container_parent(view->swayc, +			C_WORKSPACE); +	if (workspace->sway_workspace->fullscreen && !view->is_fullscreen) { +		return; +	} +  	struct damage_data data = {  		.output = output,  		.whole = whole,  | 
