~ruther/guix-local

3c26f155f35091cf8370050c63d13fd930728490 — Ricardo Wurmus 7 months ago 77d0617
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
1 files changed, 7 insertions(+), 0 deletions(-)

M gnu/packages/axoloti.scm
M gnu/packages/axoloti.scm => gnu/packages/axoloti.scm +7 -0
@@ 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"