summaryrefslogtreecommitdiff
path: root/modules
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
parentf4cf46dfcf9e724c8350fb9634ea546da89299b4 (diff)
Enable xdg-desktop-portal with gtk backend
Diffstat (limited to 'modules')
-rw-r--r--modules/common.nix6
-rw-r--r--modules/home/imhex-refresh-callback.patch12
2 files changed, 18 insertions, 0 deletions
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);