ff064747f561c05e82a04942f295199140579c7a

Author
outfoxxed <outfoxxed@outfoxxed.me>
Committer
outfoxxed <outfoxxed@outfoxxed.me>
Date

Message

set xwayland work area

Diff

 1diff --git a/src/Hy3Layout.cpp b/src/Hy3Layout.cpp
 2index 1b8f4aa3908b6654ad45ee04d10ea7537f768364..7d5c380e105e0f3a4ddafd2b61c303a28a6c78fe 100644
 3--- a/src/Hy3Layout.cpp
 4+++ b/src/Hy3Layout.cpp
 5@@ -15,6 +15,7 @@
 6 #include <hyprland/src/managers/input/InputManager.hpp>
 7 #include <hyprland/src/plugins/PluginAPI.hpp>
 8 #include <hyprland/src/plugins/PluginSystem.hpp>
 9+#include <hyprland/src/xwayland/XWayland.hpp>
10 #include <hyprutils/math/Vector2D.hpp>
11 #include <ranges>
12 
13@@ -385,6 +386,13 @@ void Hy3Layout::recalculateMonitor(const MONITORID& monitor_id) {
14 
15 		top_node->recalcSizePosRecursive();
16 	}
17+
18+#ifndef NO_XWAYLAND
19+	CBox box = g_pCompositor->calculateX11WorkArea();
20+	if (!g_pXWayland || !g_pXWayland->m_wm)
21+			return;
22+	g_pXWayland->m_wm->updateWorkArea(box.x, box.y, box.w, box.h);
23+#endif
24 }
25 
26 void Hy3Layout::recalculateWindow(PHLWINDOW window) {