mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-09 23:45:58 +01:00
revert x11 size hints
This commit is contained in:
parent
d35d949bc5
commit
dd6aba07e9
1 changed files with 4 additions and 13 deletions
|
@ -63,19 +63,10 @@ void CHyprXWaylandManager::activateWindow(CWindow* pWindow, bool activate) {
|
||||||
|
|
||||||
void CHyprXWaylandManager::getGeometryForWindow(CWindow* pWindow, wlr_box* pbox) {
|
void CHyprXWaylandManager::getGeometryForWindow(CWindow* pWindow, wlr_box* pbox) {
|
||||||
if (pWindow->m_bIsX11) {
|
if (pWindow->m_bIsX11) {
|
||||||
const auto SIZEHINTS = pWindow->m_uSurface.xwayland->size_hints;
|
|
||||||
|
|
||||||
if (SIZEHINTS && SIZEHINTS->width > 5 && SIZEHINTS->height > 5) {
|
|
||||||
pbox->x = SIZEHINTS->x;
|
|
||||||
pbox->y = SIZEHINTS->y;
|
|
||||||
pbox->width = SIZEHINTS->width;
|
|
||||||
pbox->height = SIZEHINTS->height;
|
|
||||||
} else {
|
|
||||||
pbox->x = pWindow->m_uSurface.xwayland->x;
|
pbox->x = pWindow->m_uSurface.xwayland->x;
|
||||||
pbox->y = pWindow->m_uSurface.xwayland->y;
|
pbox->y = pWindow->m_uSurface.xwayland->y;
|
||||||
pbox->width = pWindow->m_uSurface.xwayland->width;
|
pbox->width = pWindow->m_uSurface.xwayland->width;
|
||||||
pbox->height = pWindow->m_uSurface.xwayland->height;
|
pbox->height = pWindow->m_uSurface.xwayland->height;
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
wlr_xdg_surface_get_geometry(pWindow->m_uSurface.xdg, pbox);
|
wlr_xdg_surface_get_geometry(pWindow->m_uSurface.xdg, pbox);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue