From 9f73fffecc405e9425acbdce982707f605545427 Mon Sep 17 00:00:00 2001 From: Christian Date: Mon, 25 May 2026 21:39:36 -0500 Subject: Enable xdg-desktop-portal with gtk backend --- modules/common.nix | 6 ++++++ modules/home/imhex-refresh-callback.patch | 12 ++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 modules/home/imhex-refresh-callback.patch (limited to 'modules') diff --git a/modules/common.nix b/modules/common.nix index 56cc186..b42b2b3 100644 --- a/modules/common.nix +++ b/modules/common.nix @@ -87,6 +87,12 @@ vimAlias = true; }; + xdg.portal = { + enable = true; + extraPortals = [ pkgs.xdg-desktop-portal-gtk ]; + config.common.default = "gtk"; + }; + virtualisation.docker.enable = true; programs.nix-index.enable = false; 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); -- cgit v1.2.3