diff options
-rw-r--r-- | sway/desktop/xwayland.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/sway/desktop/xwayland.c b/sway/desktop/xwayland.c index cad9156d..63d9c66e 100644 --- a/sway/desktop/xwayland.c +++ b/sway/desktop/xwayland.c | |||
@@ -266,10 +266,13 @@ static void handle_request_configure(struct wl_listener *listener, void *data) { | |||
266 | struct wlr_xwayland_surface_configure_event *ev = data; | 266 | struct wlr_xwayland_surface_configure_event *ev = data; |
267 | struct sway_view *view = &xwayland_view->view; | 267 | struct sway_view *view = &xwayland_view->view; |
268 | struct wlr_xwayland_surface *xsurface = view->wlr_xwayland_surface; | 268 | struct wlr_xwayland_surface *xsurface = view->wlr_xwayland_surface; |
269 | // TODO: floating windows are allowed to move around like this, but make | 269 | if (!xsurface->mapped) { |
270 | // sure tiling windows always stay in place. | 270 | wlr_xwayland_surface_configure(xsurface, ev->x, ev->y, |
271 | wlr_xwayland_surface_configure(xsurface, ev->x, ev->y, | 271 | ev->width, ev->height); |
272 | ev->width, ev->height); | 272 | return; |
273 | } | ||
274 | // TODO: Let floating views do whatever | ||
275 | configure(view, view->swayc->x, view->swayc->y, view->width, view->height); | ||
273 | } | 276 | } |
274 | 277 | ||
275 | static void handle_request_fullscreen(struct wl_listener *listener, void *data) { | 278 | static void handle_request_fullscreen(struct wl_listener *listener, void *data) { |