mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 12:55:58 +01:00
xwm: reply to configure_requests
This commit is contained in:
parent
1458a95e65
commit
a39b091bd9
1 changed files with 6 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue