humbleui

Quest 2023-06-13T17:44:06.968399Z

Has anyone successfully built JWM on MacOS? https://github.com/HumbleUI/JWM#building-from-source Any tips, or should I instead build on Windows & transfer the artifact to Mac for testing?

Quest 2023-06-26T15:29:39.686349Z

Appreciate the encouragement in this thread; Opened https://github.com/HumbleUI/JWM/pull/269 for Mac bringToFront & isFront

Niki 2023-06-23T16:44:03.962489Z

Yeah, that was the idea behind having WindowMac.java separate from Window.java

Niki 2023-06-23T16:44:12.834909Z

Go for it

👍 1
phronmophobic 2023-06-13T17:56:35.630649Z

I haven't tried, but you can try using the github workflow steps for mac https://github.com/HumbleUI/JWM/blob/main/.github/workflows/build-deploy.yml#L48

Quest 2023-06-13T18:02:53.794049Z

Hmm, good catch. This looks runnable, just need to round up all of my missing tools/deps

phronmophobic 2023-06-13T18:05:00.386089Z

Or if you don't want to bother building locally, you could probably just fork and let github build changes for you.

phronmophobic 2023-06-13T18:05:12.887649Z

I think you get a certain number of free hours a month

Quest 2023-06-13T18:07:28.097499Z

Now that's a real protip! I'll opt for trying locally first, hope to release several JWM PRs over the coming months

1
Niki 2023-06-13T18:37:47.414389Z

you can’t compile mac version on windows (unfortunately). C++ doesn’t really have cross-compilation

🆗 1
Quest 2023-06-22T18:25:14.127259Z

I did get Mac compilation working, https://github.com/HumbleUI/JWM/pull/268 but I've been fighting with Mac's API while implementing bringToFront Below works but needs cleanup & reimplementation. Will be a while longer before I submit a PR

Quest 2023-06-22T18:43:37.531519Z

I'd also like to ask about exposing unique parts of Mac's API to downstream Clojure apps. I'd like to be able to invoke [nsWindow setLevel:9999] & [nsWindow setCollectionBehavior:...] from my app. Because these are specific to MacOS, do you have a recommendation on exposing these? It seems wrong to add to JWM/shared/java/Window.java. What about adding to macos/cc/WindowMac.hh & having downstream Clojure app run:

(condp = os
  :mac (do (.setLevel window 9999) ...)
  ...)
@tonsky How does this sound?