aboutsummaryrefslogtreecommitdiffstats
path: root/sway/desktop/xwayland.c
diff options
context:
space:
mode:
authorLibravatar emersion <contact@emersion.fr>2018-06-24 19:21:02 +0100
committerLibravatar emersion <contact@emersion.fr>2018-06-24 19:21:02 +0100
commiteeb38d65cbf5c8452c449b9f5e003bd255ca6a53 (patch)
tree48a8b193d148ac752a286604fc3a8ec4b836094c /sway/desktop/xwayland.c
parentAutomatically float xwayland windows (diff)
downloadsway-eeb38d65cbf5c8452c449b9f5e003bd255ca6a53.tar.gz
sway-eeb38d65cbf5c8452c449b9f5e003bd255ca6a53.tar.zst
sway-eeb38d65cbf5c8452c449b9f5e003bd255ca6a53.zip
xwayland: accept configure requests from floating views
Diffstat (limited to 'sway/desktop/xwayland.c')
-rw-r--r--sway/desktop/xwayland.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sway/desktop/xwayland.c b/sway/desktop/xwayland.c
index 2c3848cd..eb39dc4b 100644
--- a/sway/desktop/xwayland.c
+++ b/sway/desktop/xwayland.c
@@ -334,8 +334,12 @@ static void handle_request_configure(struct wl_listener *listener, void *data) {
334 ev->width, ev->height); 334 ev->width, ev->height);
335 return; 335 return;
336 } 336 }
337 // TODO: Let floating views do whatever 337 if (container_is_floating(view->swayc)) {
338 configure(view, view->swayc->x, view->swayc->y, view->width, view->height); 338 configure(view, view->swayc->x, view->swayc->y, ev->width, ev->height);
339 } else {
340 configure(view, view->swayc->x, view->swayc->y,
341 view->width, view->height);
342 }
339} 343}
340 344
341static void handle_request_fullscreen(struct wl_listener *listener, void *data) { 345static void handle_request_fullscreen(struct wl_listener *listener, void *data) {