aboutsummaryrefslogtreecommitdiff
path: root/rootston
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2017-09-30 16:33:04 +0200
committeremersion <contact@emersion.fr>2017-09-30 16:33:04 +0200
commit7f5d0624d666ee2af7d607a44105cb15c44e8481 (patch)
tree616dcba96739351b6ca7737bda9a526d74009ce1 /rootston
parente19b39b66b303f8dac9bea73993dd5515f2f0805 (diff)
Add x, y, width, height arguments to wlr_xwayland_surface_configure
Diffstat (limited to 'rootston')
-rw-r--r--rootston/xwayland.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/rootston/xwayland.c b/rootston/xwayland.c
index 2f034574..7ecc4d4f 100644
--- a/rootston/xwayland.c
+++ b/rootston/xwayland.c
@@ -12,9 +12,8 @@
static void resize(struct roots_view *view, uint32_t width, uint32_t height) {
assert(view->type == ROOTS_XWAYLAND_VIEW);
struct wlr_xwayland_surface *xwayland_surface = view->xwayland_surface;
- xwayland_surface->width = width;
- xwayland_surface->height = height;
- wlr_xwayland_surface_configure(view->desktop->xwayland, xwayland_surface);
+ wlr_xwayland_surface_configure(view->desktop->xwayland, xwayland_surface,
+ xwayland_surface->x, xwayland_surface->y, width, height);
}
static void handle_destroy(struct wl_listener *listener, void *data) {
@@ -32,16 +31,11 @@ static void handle_request_configure(struct wl_listener *listener, void *data) {
roots_surface->view->xwayland_surface;
struct wlr_xwayland_surface_configure_event *event = data;
- xwayland_surface->x = event->x;
- xwayland_surface->y = event->y;
- xwayland_surface->width = event->width;
- xwayland_surface->height = event->height;
-
roots_surface->view->x = (double)event->x;
roots_surface->view->y = (double)event->y;
wlr_xwayland_surface_configure(roots_surface->view->desktop->xwayland,
- xwayland_surface);
+ xwayland_surface, event->x, event->y, event->width, event->height);
}
static void activate(struct roots_view *view, bool active) {