Codebase list wlroots / 3b4824a
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
2 changed file(s) with 2 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
178178 struct wlr_xwayland_surface *surface;
179179 int16_t x, y;
180180 uint16_t width, height;
181 uint16_t mask; // xcb_config_window_t
181182 };
182183
183184 // TODO: maybe add a seat to these
870870 .y = mask & XCB_CONFIG_WINDOW_Y ? ev->y : surface->y,
871871 .width = mask & XCB_CONFIG_WINDOW_WIDTH ? ev->width : surface->width,
872872 .height = mask & XCB_CONFIG_WINDOW_HEIGHT ? ev->height : surface->height,
873 .mask = mask,
873874 };
874875 wlr_log(WLR_DEBUG, "XCB_CONFIGURE_REQUEST (%u) [%ux%u+%d,%d]", ev->window,
875876 wlr_event.width, wlr_event.height, wlr_event.x, wlr_event.y);