mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
xwayland: Handle min width/height in configure
Signed-off-by: Joshua Ashton <joshua@froggi.es>
This commit is contained in:
parent
1db6c54e59
commit
d9b021916a
1 changed files with 9 additions and 2 deletions
|
|
@ -97,8 +97,15 @@ handle_request_configure(struct wl_listener *listener, void *data)
|
||||||
{
|
{
|
||||||
struct view *view = wl_container_of(listener, view, request_configure);
|
struct view *view = wl_container_of(listener, view, request_configure);
|
||||||
struct wlr_xwayland_surface_configure_event *event = data;
|
struct wlr_xwayland_surface_configure_event *event = data;
|
||||||
wlr_xwayland_surface_configure(view->xwayland_surface, event->x,
|
|
||||||
event->y, event->width, event->height);
|
int min_width, min_height;
|
||||||
|
view_min_size(view, &min_width, &min_height);
|
||||||
|
|
||||||
|
wlr_xwayland_surface_configure(view->xwayland_surface,
|
||||||
|
event->x,
|
||||||
|
event->y,
|
||||||
|
max(event->width, min_width),
|
||||||
|
max(event->height, min_height));
|
||||||
damage_all_outputs(view->server);
|
damage_all_outputs(view->server);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue