aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-08-17 20:25:33 +1000
committerLibravatar Ryan Dwyer <ryandwyer1@gmail.com>2018-08-17 20:25:33 +1000
commit1801b725e267b2fba6b98171adcd2de8f7db9235 (patch)
tree0add5e55f85331938043eb5b0962b259d7a4af0a /include
parentMerge pull request #2465 from DonnieWest/master (diff)
downloadsway-1801b725e267b2fba6b98171adcd2de8f7db9235.tar.gz
sway-1801b725e267b2fba6b98171adcd2de8f7db9235.tar.zst
sway-1801b725e267b2fba6b98171adcd2de8f7db9235.zip
Add using_csd variable to transaction state
This fixes a race condition flicker when unfloating a view which uses client side decorations. When the view is floated it has using_csd = true, so the decorations are not drawn. When unfloating it it changes to false, but this change wasn't part of transactions so it could potentially render the decorations around the view while it's waiting for the transaction to apply.
Diffstat (limited to 'include')
-rw-r--r--include/sway/tree/container.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sway/tree/container.h b/include/sway/tree/container.h
index b64a2e63..fdcc31ec 100644
--- a/include/sway/tree/container.h
+++ b/include/sway/tree/container.h
@@ -83,6 +83,7 @@ struct sway_container_state {
83 bool border_bottom; 83 bool border_bottom;
84 bool border_left; 84 bool border_left;
85 bool border_right; 85 bool border_right;
86 bool using_csd;
86 87
87 // Workspace properties 88 // Workspace properties
88 struct sway_container *ws_fullscreen; 89 struct sway_container *ws_fullscreen;