mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 12:55:58 +01:00
backend/wayland: use request_state when toplevel is resized
This commit is contained in:
parent
ff55663906
commit
756ecf8ee9
1 changed files with 6 additions and 2 deletions
|
@ -490,8 +490,12 @@ static void xdg_toplevel_handle_configure(void *data,
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: loop over states for maximized etc?
|
struct wlr_output_state state = {
|
||||||
wlr_output_update_custom_mode(&output->wlr_output, width, height, 0);
|
.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,
|
static void xdg_toplevel_handle_close(void *data,
|
||||||
|
|
Loading…
Reference in a new issue