mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-24 06:59:45 -05:00
xdg-shell: add support for v4
This adds a configure_bounds event to let the client know of the preferred maximum window geometry size.
This commit is contained in:
parent
18595000f3
commit
e383c1f1db
3 changed files with 38 additions and 3 deletions
|
|
@ -137,10 +137,18 @@ struct wlr_xdg_toplevel_state {
|
|||
uint32_t min_width, min_height;
|
||||
};
|
||||
|
||||
enum wlr_xdg_toplevel_configure_field {
|
||||
WLR_XDG_TOPLEVEL_CONFIGURE_BOUNDS = 1 << 0,
|
||||
};
|
||||
|
||||
struct wlr_xdg_toplevel_configure {
|
||||
uint32_t fields; // enum wlr_xdg_toplevel_configure_field
|
||||
bool maximized, fullscreen, resizing, activated;
|
||||
uint32_t tiled; // enum wlr_edges
|
||||
uint32_t width, height;
|
||||
struct {
|
||||
uint32_t width, height;
|
||||
} bounds;
|
||||
};
|
||||
|
||||
struct wlr_xdg_toplevel_requested {
|
||||
|
|
@ -376,6 +384,13 @@ uint32_t wlr_xdg_toplevel_set_resizing(struct wlr_xdg_toplevel *toplevel,
|
|||
uint32_t wlr_xdg_toplevel_set_tiled(struct wlr_xdg_toplevel *toplevel,
|
||||
uint32_t tiled_edges);
|
||||
|
||||
/**
|
||||
* Configure the recommended bounds for the client's window geometry size.
|
||||
* Returns the associated configure serial.
|
||||
*/
|
||||
uint32_t wlr_xdg_toplevel_set_bounds(struct wlr_xdg_toplevel *toplevel,
|
||||
int32_t width, int32_t height);
|
||||
|
||||
/**
|
||||
* Request that this toplevel closes.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue