diff options
| author | jmanc3 <jman12316@live.com> | 2025-10-29 06:24:34 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-29 11:24:34 +0000 |
| commit | ce9787b3f47ce550027274a1aa25e74b6fb1c74a (patch) | |
| tree | f26b1c1c071f01c9b5dd3a718fff1a9c85caaef8 /src/layout/MasterLayout.cpp | |
| parent | 9eb82774e53dc02e4fa204a911cb4256cd21f429 (diff) | |
xwayland: set _NET_WORKAREA property (#12148)
Diffstat (limited to 'src/layout/MasterLayout.cpp')
| -rw-r--r-- | src/layout/MasterLayout.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/layout/MasterLayout.cpp b/src/layout/MasterLayout.cpp index c9dbcdd6..b40c339a 100644 --- a/src/layout/MasterLayout.cpp +++ b/src/layout/MasterLayout.cpp @@ -9,6 +9,7 @@ #include "../managers/input/InputManager.hpp" #include "../managers/LayoutManager.hpp" #include "../managers/EventManager.hpp" +#include "xwayland/XWayland.hpp" SMasterNodeData* CHyprMasterLayout::getNodeFromWindow(PHLWINDOW pWindow) { for (auto& nd : m_masterNodesData) { @@ -293,6 +294,11 @@ void CHyprMasterLayout::recalculateMonitor(const MONITORID& monid) { calculateWorkspace(PMONITOR->m_activeSpecialWorkspace); calculateWorkspace(PMONITOR->m_activeWorkspace); + +#ifndef NO_XWAYLAND + CBox box = g_pCompositor->calculateX11WorkArea(); + g_pXWayland->m_wm->updateWorkArea(box.x, box.y, box.w, box.h); +#endif } void CHyprMasterLayout::calculateWorkspace(PHLWORKSPACE pWorkspace) { |
