aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/managers/XWaylandManager.cpp
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2023-02-28 21:18:09 +0000
committervaxerski <[email protected]>2023-02-28 21:18:13 +0000
commit72fc309fb14e0651448f35d08753dba772a5a409 (patch)
tree4b67d68504fa719d42ec55fbaa620e9b1017374d /src/managers/XWaylandManager.cpp
parent7187ea443e756899d32334cdb5e8a49fa49a3d79 (diff)
downloadHyprland-72fc309fb14e0651448f35d08753dba772a5a409.tar.gz
Hyprland-72fc309fb14e0651448f35d08753dba772a5a409.zip
make window reserved area less stupid
Diffstat (limited to 'src/managers/XWaylandManager.cpp')
-rw-r--r--src/managers/XWaylandManager.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/managers/XWaylandManager.cpp b/src/managers/XWaylandManager.cpp
index 3f8f51e8..60b339b3 100644
--- a/src/managers/XWaylandManager.cpp
+++ b/src/managers/XWaylandManager.cpp
@@ -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;