Open cgrabenstein opened 2 years ago
The reason for this behaviour can be found here: https://github.com/clojure-emacs/orchard/blob/master/src-newer-jdks/orchard/java/parser.clj#L134
But that's supposedly the solution for the problem, right?
It's not - that line of code is meant to prevent a GUI nuisance from popping up in non GUI projects.
The issue is with GUI projects.
However that same line of code suggests a fix: set apple.awt.UIElement
in advance for whatever value is best for your GUI app.
Non-GUI apps need to do nothing.
I'd suggest to close this issue by documenting the behavior in cider.
Ah, yeah - I didn't read the ticket carefully enough. I agree we should document it as the simplest solution.
This is basically a repost of https://github.com/clojure-emacs/cider-nrepl/issues/610, but the origin of the cider-nrepl issue can be found here, in this repository.
Expected behavior
Using orchard (or any other library that depends on it) on mac does not affect the way how java swing frames are being displayed.
Actual behavior
Using orchard (or, for example cider/cider-nrepl) causes swing frames to "hover" on mac. I can't use cmd+tab to switch to the frame which makes developing very cumbersome.
Steps to reproduce the problem
lein repl
The reason for this behaviour can be found here: https://github.com/clojure-emacs/orchard/blob/master/src-newer-jdks/orchard/java/parser.clj#L134
Environment & Version information
Clojure version
Java version
Operating system
macOS Monterey 12.3.1