From 06091e0976c20b8b52ce005cd21a31e3f5b0e025 Mon Sep 17 00:00:00 2001 From: Julien Roy Date: Sat, 9 Mar 2024 12:56:07 -0500 Subject: [PATCH] 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 Signed-off-by: Yixun Lan --- gui-wm/hyprland/files/tty-freeze.patch | 12 ++++++++++++ ...nd-0.35.0-r2.ebuild => hyprland-0.35.0-r3.ebuild} | 3 +++ ...nd-0.36.0-r1.ebuild => hyprland-0.36.0-r2.ebuild} | 3 +++ 3 files changed, 18 insertions(+) create mode 100644 gui-wm/hyprland/files/tty-freeze.patch rename gui-wm/hyprland/{hyprland-0.35.0-r2.ebuild => hyprland-0.35.0-r3.ebuild} (96%) rename gui-wm/hyprland/{hyprland-0.36.0-r1.ebuild => hyprland-0.36.0-r2.ebuild} (96%) diff --git a/gui-wm/hyprland/files/tty-freeze.patch b/gui-wm/hyprland/files/tty-freeze.patch new file mode 100644 index 0000000000000..991593b8de864 --- /dev/null +++ b/gui-wm/hyprland/files/tty-freeze.patch @@ -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; diff --git a/gui-wm/hyprland/hyprland-0.35.0-r2.ebuild b/gui-wm/hyprland/hyprland-0.35.0-r3.ebuild similarity index 96% rename from gui-wm/hyprland/hyprland-0.35.0-r2.ebuild rename to gui-wm/hyprland/hyprland-0.35.0-r3.ebuild index 81c8b1bbcb997..369ffc6eb9515 100644 --- a/gui-wm/hyprland/hyprland-0.35.0-r2.ebuild +++ b/gui-wm/hyprland/hyprland-0.35.0-r3.ebuild @@ -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() { diff --git a/gui-wm/hyprland/hyprland-0.36.0-r1.ebuild b/gui-wm/hyprland/hyprland-0.36.0-r2.ebuild similarity index 96% rename from gui-wm/hyprland/hyprland-0.36.0-r1.ebuild rename to gui-wm/hyprland/hyprland-0.36.0-r2.ebuild index 972fe7b33988c..7190982afaef2 100644 --- a/gui-wm/hyprland/hyprland-0.36.0-r1.ebuild +++ b/gui-wm/hyprland/hyprland-0.36.0-r2.ebuild @@ -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() {