Skip to content

[macOS]: Bring the window to the front when opened from the menu bar - #236

Open
Dx-Alz-xD wants to merge 1 commit into
vinnovateit:mainfrom
Dx-Alz-xD:mac-window-focus
Open

Dx-Alz-xD wants to merge 1 commit into
vinnovateit:mainfrom
Dx-Alz-xD:mac-window-focus

Conversation

@Dx-Alz-xD

Copy link
Copy Markdown
Contributor

Fixes #231

macOS only brings a window forward
then focuses it when its app is the active one
opening Latch from the menu bar left the previous app active, so toFront() left the window behind it
latch now asks to become the active app first (Desktop.requestForeground) on macOS only

Platforms: macOS

testing

builds and the desktop tests pass.
this needs a check on a mac, i used a vm, open latch from the menu bar while another app is in front and the window should come up focused

macOS only brings a window forward when its app is active, and opening
Latch from the menu bar left the previous app active. Latch now asks to
become the active app first.

Fixes vinnovateit#231
@ameyakakade

ameyakakade commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

There are conflicts from your previous branch #238
Pull from the main branch once, test if OS is MacOS only once.

Tested on a Mac, works as expected!

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MacOS window focus

2 participants