xwayland: Expose configure request mask
Without this information, compositors have no way to tell whether
or not to consider the position information valid. Most notably,
a compositor needs to know if it should pick a position for the
surface or use the position sent in the configure request.
Scott Moreau authored 4 years ago
Simon Ser committed 4 years ago
178 | 178 |
struct wlr_xwayland_surface *surface;
|
179 | 179 |
int16_t x, y;
|
180 | 180 |
uint16_t width, height;
|
|
181 |
uint16_t mask; // xcb_config_window_t
|
181 | 182 |
};
|
182 | 183 |
|
183 | 184 |
// TODO: maybe add a seat to these
|
870 | 870 |
.y = mask & XCB_CONFIG_WINDOW_Y ? ev->y : surface->y,
|
871 | 871 |
.width = mask & XCB_CONFIG_WINDOW_WIDTH ? ev->width : surface->width,
|
872 | 872 |
.height = mask & XCB_CONFIG_WINDOW_HEIGHT ? ev->height : surface->height,
|
|
873 |
.mask = mask,
|
873 | 874 |
};
|
874 | 875 |
wlr_log(WLR_DEBUG, "XCB_CONFIGURE_REQUEST (%u) [%ux%u+%d,%d]", ev->window,
|
875 | 876 |
wlr_event.width, wlr_event.height, wlr_event.x, wlr_event.y);
|