aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/layout/MasterLayout.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/layout/MasterLayout.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/layout/MasterLayout.cpp')
-rw-r--r--src/layout/MasterLayout.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/layout/MasterLayout.cpp b/src/layout/MasterLayout.cpp
index 0fbb2391..e3b7b7ab 100644
--- a/src/layout/MasterLayout.cpp
+++ b/src/layout/MasterLayout.cpp
@@ -141,8 +141,8 @@ void CHyprMasterLayout::onWindowCreatedTiling(CWindow* pWindow, eDirection direc
for (auto it = m_lMasterNodesData.begin(); it != m_lMasterNodesData.end(); ++it) {
if (it->workspaceID != pWindow->m_iWorkspaceID)
continue;
- const wlr_box box = it->pWindow->getWindowIdealBoundingBoxIgnoreReserved();
- if (wlr_box_contains_point(&box, MOUSECOORDS.x, MOUSECOORDS.y)) {
+ const CBox box = it->pWindow->getWindowIdealBoundingBoxIgnoreReserved();
+ if (box.containsPoint(MOUSECOORDS)) {
switch (orientation) {
case ORIENTATION_LEFT:
case ORIENTATION_RIGHT: