From 1801b725e267b2fba6b98171adcd2de8f7db9235 Mon Sep 17 00:00:00 2001 From: Ryan Dwyer Date: Fri, 17 Aug 2018 20:25:33 +1000 Subject: 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. --- include/sway/tree/container.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') 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 { bool border_bottom; bool border_left; bool border_right; + bool using_csd; // Workspace properties struct sway_container *ws_fullscreen; -- cgit v1.2.3-54-g00ecf