diff options
author | Ryan Dwyer <[email protected]> | 2018-09-24 20:54:57 +1000 |
---|---|---|
committer | Ryan Dwyer <[email protected]> | 2018-09-27 22:51:37 +1000 |
commit | 7b138e5ef0f679c9bb0078019d7c9c63fef36273 (patch) | |
tree | 2cdbeb394889065e0606a1fcbe38c1e99e25d260 /sway/desktop/transaction.c | |
parent | 58af0015170204de6d186f0f25cd0b9315d062d7 (diff) |
Add CSD to border modes
This replaces view.using_csd with a new border mode: B_CSD. This also
removes sway_xdg_shell{_v6}_view.deco_mode and
view->has_client_side_decorations as we can now get these from the
border.
You can use `border toggle` to cycle through the modes including CSD, or
use `border csd` to set it directly. The client must support the
xdg-decoration protocol, and the only client I know of that does is the
example in wlroots.
If the client switches from SSD to CSD without us expecting it (via the
server-decoration protocol), we stash the previous border type into
view.saved_border so we can restore it if the client returns to SSD. I
haven't found a way to test this though.
Diffstat (limited to 'sway/desktop/transaction.c')
-rw-r--r-- | sway/desktop/transaction.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sway/desktop/transaction.c b/sway/desktop/transaction.c index 797f6b4c..4624d824 100644 --- a/sway/desktop/transaction.c +++ b/sway/desktop/transaction.c @@ -167,7 +167,6 @@ static void copy_container_state(struct sway_container *container, state->border_left = view->border_left; state->border_right = view->border_right; state->border_bottom = view->border_bottom; - state->using_csd = view->using_csd; } else { state->children = create_list(); list_cat(state->children, container->children); |