aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/managers/XWaylandManager.cpp
diff options
context:
space:
mode:
authorVaxry <[email protected]>2023-11-04 17:03:05 +0000
committerGitHub <[email protected]>2023-11-04 17:03:05 +0000
commit55b4f84fea33adee3ec4b0a69c2bca6e7a1f5754 (patch)
treebe7db4f841b4ac049527daae01e683701bf92b92 /src/managers/XWaylandManager.cpp
parent73e78f05ad5cafa20ac5bf177c94ac9ecca37097 (diff)
downloadHyprland-55b4f84fea33adee3ec4b0a69c2bca6e7a1f5754.tar.gz
Hyprland-55b4f84fea33adee3ec4b0a69c2bca6e7a1f5754.zip
Internal: Hyprland box implementation (#3755)
* box impl * remove unused operators * missed applyfromwlr
Diffstat (limited to 'src/managers/XWaylandManager.cpp')
-rw-r--r--src/managers/XWaylandManager.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/managers/XWaylandManager.cpp b/src/managers/XWaylandManager.cpp
index a40647fa..04fbaf21 100644
--- a/src/managers/XWaylandManager.cpp
+++ b/src/managers/XWaylandManager.cpp
@@ -74,7 +74,7 @@ void CHyprXWaylandManager::activateWindow(CWindow* pWindow, bool activate) {
g_pCompositor->getWorkspaceByID(pWindow->m_iWorkspaceID)->m_pLastFocusedWindow = pWindow;
}
-void CHyprXWaylandManager::getGeometryForWindow(CWindow* pWindow, wlr_box* pbox) {
+void CHyprXWaylandManager::getGeometryForWindow(CWindow* pWindow, CBox* pbox) {
if (pWindow->m_bIsX11) {
const auto SIZEHINTS = pWindow->m_uSurface.xwayland->size_hints;
@@ -89,8 +89,10 @@ void CHyprXWaylandManager::getGeometryForWindow(CWindow* pWindow, wlr_box* pbox)
pbox->width = pWindow->m_uSurface.xwayland->width;
pbox->height = pWindow->m_uSurface.xwayland->height;
}
- } else
- wlr_xdg_surface_get_geometry(pWindow->m_uSurface.xdg, pbox);
+ } else {
+ wlr_xdg_surface_get_geometry(pWindow->m_uSurface.xdg, pbox->pWlr());
+ pbox->applyFromWlr();
+ }
}
std::string CHyprXWaylandManager::getTitle(CWindow* pWindow) {