aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Tassilo Horn <tsdh@gnu.org>2021-10-07 20:22:56 +0200
committerLibravatar Kirill Primak <vyivel@posteo.net>2021-10-07 21:29:37 +0300
commita47f8ef478cd6ee26b0a362884e78b2190169d39 (patch)
tree82d13aa795e8ecc8399880ea4169c770335b96fd
parentreadme: drop recommendation about packaging (diff)
downloadsway-a47f8ef478cd6ee26b0a362884e78b2190169d39.tar.gz
sway-a47f8ef478cd6ee26b0a362884e78b2190169d39.tar.zst
sway-a47f8ef478cd6ee26b0a362884e78b2190169d39.zip
Fix compile after wlroots commit c3e54021f8bbf3ec1c1e5906459be0ae85f5fb8c
-rw-r--r--sway/desktop/xdg_shell.c2
-rw-r--r--sway/xdg_decoration.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sway/desktop/xdg_shell.c b/sway/desktop/xdg_shell.c
index fe67c8a7..c1e5bc68 100644
--- a/sway/desktop/xdg_shell.c
+++ b/sway/desktop/xdg_shell.c
@@ -436,7 +436,7 @@ static void handle_map(struct wl_listener *listener, void *data) {
436 436
437 if (view->xdg_decoration) { 437 if (view->xdg_decoration) {
438 enum wlr_xdg_toplevel_decoration_v1_mode mode = 438 enum wlr_xdg_toplevel_decoration_v1_mode mode =
439 view->xdg_decoration->wlr_xdg_decoration->client_pending_mode; 439 view->xdg_decoration->wlr_xdg_decoration->requested_mode;
440 csd = mode == WLR_XDG_TOPLEVEL_DECORATION_V1_MODE_CLIENT_SIDE; 440 csd = mode == WLR_XDG_TOPLEVEL_DECORATION_V1_MODE_CLIENT_SIDE;
441 } else { 441 } else {
442 struct sway_server_decoration *deco = 442 struct sway_server_decoration *deco =
diff --git a/sway/xdg_decoration.c b/sway/xdg_decoration.c
index 8a9a9a28..ec9e8d68 100644
--- a/sway/xdg_decoration.c
+++ b/sway/xdg_decoration.c
@@ -27,7 +27,7 @@ static void xdg_decoration_handle_request_mode(struct wl_listener *listener,
27 enum wlr_xdg_toplevel_decoration_v1_mode mode = 27 enum wlr_xdg_toplevel_decoration_v1_mode mode =
28 WLR_XDG_TOPLEVEL_DECORATION_V1_MODE_SERVER_SIDE; 28 WLR_XDG_TOPLEVEL_DECORATION_V1_MODE_SERVER_SIDE;
29 enum wlr_xdg_toplevel_decoration_v1_mode client_mode = 29 enum wlr_xdg_toplevel_decoration_v1_mode client_mode =
30 deco->wlr_xdg_decoration->client_pending_mode; 30 deco->wlr_xdg_decoration->requested_mode;
31 31
32 bool floating; 32 bool floating;
33 if (view->container) { 33 if (view->container) {