xwayland: set _NET_WORKAREA property (#12148)
This commit is contained in:
parent
9eb82774e5
commit
ce9787b3f4
6 changed files with 67 additions and 1 deletions
|
|
@ -7,6 +7,7 @@
|
|||
#include "../managers/input/InputManager.hpp"
|
||||
#include "../managers/LayoutManager.hpp"
|
||||
#include "../managers/EventManager.hpp"
|
||||
#include "xwayland/XWayland.hpp"
|
||||
|
||||
SWorkspaceGaps CHyprDwindleLayout::getWorkspaceGaps(const PHLWORKSPACE& pWorkspace) {
|
||||
const auto WORKSPACERULE = g_pConfigManager->getWorkspaceRuleFor(pWorkspace);
|
||||
|
|
@ -597,6 +598,11 @@ void CHyprDwindleLayout::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 CHyprDwindleLayout::calculateWorkspace(const PHLWORKSPACE& pWorkspace) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue