diff options
author | Dominique Martinet <asmadeus@codewreck.org> | 2017-08-20 14:18:43 +0200 |
---|---|---|
committer | Dominique Martinet <asmadeus@codewreck.org> | 2017-08-23 22:03:49 +0200 |
commit | a39b091bd9575b3dcca9bd3f0b952b078ca287a6 (patch) | |
tree | 66a57d557b23c816bead46bb93781f1cd2348e17 /xwayland | |
parent | 1458a95e65248fede646051d2607c4553e8dcb0c (diff) |
xwm: reply to configure_requests
Diffstat (limited to 'xwayland')
-rw-r--r-- | xwayland/xwm.c | 6 |
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) { |