aboutsummaryrefslogtreecommitdiff
path: root/backend
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-01-28 16:04:47 +0100
committerSimon Zeni <simon@bl4ckb0ne.ca>2022-11-15 15:39:55 +0000
commit756ecf8ee9f1e75bc7b8297dc84f97c7d699174b (patch)
tree2007e952465dc1a9ed661db9c8fc2aede0d41348 /backend
parentff55663906cb492a07f6baba446e42812618d988 (diff)
backend/wayland: use request_state when toplevel is resized
Diffstat (limited to 'backend')
-rw-r--r--backend/wayland/output.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/backend/wayland/output.c b/backend/wayland/output.c
index b09a30c8..ca16cbf5 100644
--- a/backend/wayland/output.c
+++ b/backend/wayland/output.c
@@ -490,8 +490,12 @@ static void xdg_toplevel_handle_configure(void *data,
return;
}
- // TODO: loop over states for maximized etc?
- wlr_output_update_custom_mode(&output->wlr_output, width, height, 0);
+ struct wlr_output_state state = {
+ .committed = WLR_OUTPUT_STATE_MODE,
+ .mode_type = WLR_OUTPUT_STATE_MODE_CUSTOM,
+ .custom_mode = { .width = width, .height = height },
+ };
+ wlr_output_send_request_state(&output->wlr_output, &state);
}
static void xdg_toplevel_handle_close(void *data,