compositor: fix calculating x11 work area (#13347)

in a multimon scenario, due to our positioning hacks, and due to the fact work area is a rect anyways, likely wont make sense
This commit is contained in:
Vaxry 2026-02-25 22:44:35 +00:00 committed by GitHub
parent 5b2efe54b1
commit d0583e1761
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 20 additions and 26 deletions

View file

@ -121,7 +121,7 @@ class CCompositor {
WORKSPACEID getNextAvailableNamedWorkspace();
bool isPointOnAnyMonitor(const Vector2D&);
bool isPointOnReservedArea(const Vector2D& point, const PHLMONITOR monitor = nullptr);
CBox calculateX11WorkArea();
std::optional<CBox> calculateX11WorkArea();
PHLMONITOR getMonitorInDirection(Math::eDirection);
PHLMONITOR getMonitorInDirection(PHLMONITOR, Math::eDirection);
void updateAllWindowsAnimatedDecorationValues();