gui-wm/hyprland: add patch for bug 926259

Closes: https://bugs.gentoo.org/926259
Closes: https://github.com/gentoo/gentoo/pull/35686
Signed-off-by: Julien Roy <julien@jroy.ca>
Signed-off-by: Yixun Lan <dlan@gentoo.org>
This commit is contained in:
Julien Roy
2024-03-09 12:56:07 -05:00
committed by Yixun Lan
parent 4f86a26b49
commit 06091e0976
3 changed files with 18 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
diff --git a/src/events/Misc.cpp b/src/events/Misc.cpp
index b77cf038..eaaaec18 100644
--- a/src/events/Misc.cpp
+++ b/src/events/Misc.cpp
@@ -169,6 +169,7 @@ void Events::listener_sessionActive(wl_listener* listener, void* data) {
for (auto& m : g_pCompositor->m_vMonitors) {
g_pCompositor->scheduleFrameForMonitor(m.get());
+ g_pHyprRenderer->applyMonitorRule(m.get(), &m->activeMonitorRule, true);
}
g_pConfigManager->m_bWantsMonitorReload = true;

View File

@@ -95,6 +95,9 @@ BDEPEND="
PATCHES=(
"${FILESDIR}/legacy-renderer-fix.patch"
# https://bugs.gentoo.org/926259
# https://github.com/hyprwm/Hyprland/issues/4839
"${FILESDIR}/tty-freeze.patch"
)
pkg_setup() {

View File

@@ -96,6 +96,9 @@ BDEPEND="
PATCHES=(
"${FILESDIR}/legacy-renderer-fix.patch"
# https://bugs.gentoo.org/926259
# https://github.com/hyprwm/Hyprland/issues/4839
"${FILESDIR}/tty-freeze.patch"
)
pkg_setup() {