diff options
| author | DDoSolitary <DDoSolitary@gmail.com> | 2025-01-28 18:04:57 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-28 10:04:57 +0000 |
| commit | d3042e5358a91287d6ff9d8c745dc70af1ebdc90 (patch) | |
| tree | 5cebe04ad806c455648507a47ad49fa9b1219cfe /src/xwayland/XWM.cpp | |
| parent | d2773d7a4ecde7111af4ec71b51b1996ec1d96bf (diff) | |
xwayland: respect window size set by configure requests (#9190)
Diffstat (limited to 'src/xwayland/XWM.cpp')
| -rw-r--r-- | src/xwayland/XWM.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xwayland/XWM.cpp b/src/xwayland/XWM.cpp index ef139b38..6673105e 100644 --- a/src/xwayland/XWM.cpp +++ b/src/xwayland/XWM.cpp @@ -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); |
