aboutsummaryrefslogtreecommitdiff
path: root/xwayland
diff options
context:
space:
mode:
authorDominique Martinet <asmadeus@codewreck.org>2017-08-20 14:18:43 +0200
committerDominique Martinet <asmadeus@codewreck.org>2017-08-23 22:03:49 +0200
commita39b091bd9575b3dcca9bd3f0b952b078ca287a6 (patch)
tree66a57d557b23c816bead46bb93781f1cd2348e17 /xwayland
parent1458a95e65248fede646051d2607c4553e8dcb0c (diff)
xwm: reply to configure_requests
Diffstat (limited to 'xwayland')
-rw-r--r--xwayland/xwm.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/xwayland/xwm.c b/xwayland/xwm.c
index bcc5ea05..843b296b 100644
--- a/xwayland/xwm.c
+++ b/xwayland/xwm.c
@@ -106,6 +106,12 @@ static void handle_configure_request(struct wlr_xwm *xwm, xcb_configure_request_
window->width = ev->width;
window->height = ev->height;
// handle parent/sibling?
+
+ uint32_t values[] = { ev->x, ev->y, ev->width, ev->height, 0 };
+ uint32_t mask = XCB_CONFIG_WINDOW_X | XCB_CONFIG_WINDOW_Y |
+ XCB_CONFIG_WINDOW_WIDTH | XCB_CONFIG_WINDOW_HEIGHT |
+ XCB_CONFIG_WINDOW_BORDER_WIDTH;
+ xcb_configure_window(xwm->xcb_conn, ev->window, mask, values);
}
static void handle_map_request(struct wlr_xwm *xwm, xcb_map_request_event_t *ev) {