xwayland: respect window size set by configure requests (#9190)
This commit is contained in:
parent
d2773d7a4e
commit
d3042e5358
2 changed files with 5 additions and 25 deletions
|
|
@ -102,8 +102,8 @@ void CXWM::handleMapRequest(xcb_map_request_event_t* e) {
|
|||
const bool HAS_HINTS = XSURF->sizeHints && Vector2D{XSURF->sizeHints->base_width, XSURF->sizeHints->base_height} > Vector2D{5, 5};
|
||||
const auto DESIREDSIZE = HAS_HINTS ? Vector2D{XSURF->sizeHints->base_width, XSURF->sizeHints->base_height} : Vector2D{800, 800};
|
||||
|
||||
// if it's too small, or its base size is set, configure it.
|
||||
if ((SMALL || HAS_HINTS) && !XSURF->overrideRedirect) // default to 800 x 800
|
||||
// if it's too small, configure it.
|
||||
if (SMALL && !XSURF->overrideRedirect) // default to 800 x 800
|
||||
XSURF->configure({XSURF->geometry.pos(), DESIREDSIZE});
|
||||
|
||||
Debug::log(LOG, "[xwm] Mapping window {} in X (geometry {}x{} at {}x{}))", e->window, XSURF->geometry.width, XSURF->geometry.height, XSURF->geometry.x, XSURF->geometry.y);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue