mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-09-27 05:38:28 +00:00
make window reserved area less stupid
This commit is contained in:
@@ -138,10 +138,6 @@ void CHyprXWaylandManager::sendCloseWindow(CWindow* pWindow) {
|
||||
|
||||
void CHyprXWaylandManager::setWindowSize(CWindow* pWindow, Vector2D size, bool force) {
|
||||
|
||||
const auto RESERVED = pWindow->getFullWindowReservedArea();
|
||||
|
||||
size = size - RESERVED.topLeft - RESERVED.bottomRight;
|
||||
|
||||
if (!force &&
|
||||
((pWindow->m_vReportedSize == size && pWindow->m_vRealPosition.vec() == pWindow->m_vReportedPosition) || (pWindow->m_vReportedSize == size && !pWindow->m_bIsX11)))
|
||||
return;
|
||||
|
Reference in New Issue
Block a user