Replies: 2 comments 2 replies
-
|
Did you find a solution you could document here? |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Can you obtain the actual available desktop space (excluding the Dock) by calling the native macOS system APIs through FFI? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there!
I am currently trying to implement a window that automatically snaps/sticks to the bottom of the screen (similar to a desktop widget or an overlay).
Current Approach: Currently, I am calculating the window position manually:
top = screen_height - window_heightThe Problem: This logic does not account for the system UI, such as the Windows Taskbar or the macOS Dock. As a result, my window ends up being partially covered by the taskbar or overlaps it, rather than sitting right above it.
What I need: Ideally, I need to calculate the position like this:
top = screen_height - window_height - taskbar_heightOr, even better, access the monitor's "Work Area" (the available screen space excluding system bars).
My Question: Does it expose any API to:
Thanks in advance for any suggestions!
Beta Was this translation helpful? Give feedback.
All reactions