From 3c26f155f35091cf8370050c63d13fd930728490 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Thu, 4 Sep 2025 21:20:59 +0200 Subject: [PATCH] gnu: ksoloti-patcher: Patch to fix for tiling managers. The object search frame disappears immediately after creating it when the window is managed by tiling window managers. This patch removes the event handler that would close the window when focus appears to have been lost. * gnu/packages/axoloti.scm (ksoloti-patcher)[arguments]: Add phase 'patch-for-tiling-window-managers. Change-Id: I107982387504b796b51dc4a26d63bdd291f45aaa --- gnu/packages/axoloti.scm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gnu/packages/axoloti.scm b/gnu/packages/axoloti.scm index 75087359fd43a87fd9fdbc4d8e846e5019739992..3b554f05ee8d2d13ccc77b22198a9c45d3f64250 100644 --- a/gnu/packages/axoloti.scm +++ b/gnu/packages/axoloti.scm @@ -515,6 +515,13 @@ This package provides the runtime.") #:phases #~(modify-phases %standard-phases (delete 'configure) + (add-after 'unpack 'patch-for-tiling-window-managers + (lambda _ + ;; On tiling window managers like Niri the focus lost event will + ;; always close the window, even when focus has not actually + ;; been lost. + (substitute* "src/main/java/axoloti/ObjectSearchFrame.java" + (("formWindowLostFocus\\(evt\\)") "return")))) (replace 'build (lambda* (#:key inputs #:allow-other-keys) (setenv "JAVA_HOME"