aboutsummaryrefslogtreecommitdiff
path: root/sway/commands
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-04-07 11:53:10 -0400
committerGitHub <noreply@github.com>2018-04-07 11:53:10 -0400
commitc47b4d4edb7714612ec7236fafda5ca54cb92ce4 (patch)
tree9a7f991e9c3da20351b58c53e0b6dbe376f12dca /sway/commands
parentf5a9bd5cb75b37376b98eadbff2facb7e0021d57 (diff)
parent0c627918bb1d4c056744157b8c37fb1f62c5ca8e (diff)
Merge pull request #1756 from emersion/output-damage
Fine-grained damage tracking
Diffstat (limited to 'sway/commands')
-rw-r--r--sway/commands/opacity.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sway/commands/opacity.c b/sway/commands/opacity.c
index b8cd1f09..68fd9f42 100644
--- a/sway/commands/opacity.c
+++ b/sway/commands/opacity.c
@@ -30,10 +30,7 @@ struct cmd_results *cmd_opacity(int argc, char **argv) {
}
con->alpha = opacity;
-
- if (con->type == C_VIEW) {
- view_damage_whole(con->sway_view);
- }
+ container_damage_whole(con);
return cmd_results_new(CMD_SUCCESS, NULL, NULL);
}