summaryrefslogtreecommitdiff
path: root/modules/home/imhex-refresh-callback.patch
diff options
context:
space:
mode:
authorChristian <[email protected]>2026-05-25 21:39:36 -0500
committerChristian <[email protected]>2026-05-25 21:39:36 -0500
commit9f73fffecc405e9425acbdce982707f605545427 (patch)
treea2f0ef3501c3931b26583a4747d02ed46c154c24 /modules/home/imhex-refresh-callback.patch
parentf4cf46dfcf9e724c8350fb9634ea546da89299b4 (diff)
Enable xdg-desktop-portal with gtk backend
Diffstat (limited to 'modules/home/imhex-refresh-callback.patch')
-rw-r--r--modules/home/imhex-refresh-callback.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/home/imhex-refresh-callback.patch b/modules/home/imhex-refresh-callback.patch
new file mode 100644
index 0000000..eef0251
--- /dev/null
+++ b/modules/home/imhex-refresh-callback.patch
@@ -0,0 +1,12 @@
+diff --git a/main/gui/source/window/window.cpp b/main/gui/source/window/window.cpp
+index e0469cb..114a0e9 100644
+--- a/main/gui/source/window/window.cpp
++++ b/main/gui/source/window/window.cpp
+@@ -1099,6 +1099,7 @@ namespace hex {
+ glfwSetCursorPosCallback(m_window, unlockFrameRate);
+ glfwSetMouseButtonCallback(m_window, unlockFrameRate);
+ glfwSetScrollCallback(m_window, unlockFrameRate);
++ glfwSetWindowRefreshCallback(m_window, unlockFrameRate);
+
+ glfwSetWindowFocusCallback(m_window, [](GLFWwindow *window, int focused) {
+ unlockFrameRate(window);