mirror of
https://github.com/NickHu/sway
synced 2024-12-27 21:58:11 +01:00
xwayland: accept configure requests from floating views
This commit is contained in:
parent
cda66e9a26
commit
eeb38d65cb
1 changed files with 6 additions and 2 deletions
|
@ -334,8 +334,12 @@ static void handle_request_configure(struct wl_listener *listener, void *data) {
|
|||
ev->width, ev->height);
|
||||
return;
|
||||
}
|
||||
// TODO: Let floating views do whatever
|
||||
configure(view, view->swayc->x, view->swayc->y, view->width, view->height);
|
||||
if (container_is_floating(view->swayc)) {
|
||||
configure(view, view->swayc->x, view->swayc->y, ev->width, ev->height);
|
||||
} else {
|
||||
configure(view, view->swayc->x, view->swayc->y,
|
||||
view->width, view->height);
|
||||
}
|
||||
}
|
||||
|
||||
static void handle_request_fullscreen(struct wl_listener *listener, void *data) {
|
||||
|
|
Loading…
Reference in a new issue