Skip to content

Add --no-focus flag to native:run command#93

Merged
simonhamp merged 3 commits intoNativePHP:mainfrom
mattstauffer:mes/native-run-no-focus-mode
Mar 4, 2026
Merged

Add --no-focus flag to native:run command#93
simonhamp merged 3 commits intoNativePHP:mainfrom
mattstauffer:mes/native-run-no-focus-mode

Conversation

@mattstauffer
Copy link
Contributor

When I'm developing locally, the window constantly steals focus whenever I make any changes.

This PR adds a --no-focus parameter to the native:run command.

I have tested this locally, but this is my first NativePHP app, so I'm not 100% confident I did it right. But it seems to work on my machine, for what that's worth.

@mattstauffer
Copy link
Contributor Author

The failing test is also failing on main, afaict.

@gwleuverink
Copy link
Collaborator

Holy cow! Matt spotted in the wild 👀 Will review tomorrow. Thanks 🙏

Copy link
Member

@SRWieZ SRWieZ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great 👍

Copy link
Member

@simonhamp simonhamp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @mattstauffer 🙏🏼 I have applied the test fix here for ease

@simonhamp simonhamp merged commit ff07152 into NativePHP:main Mar 4, 2026
28 of 29 checks passed
@mattstauffer mattstauffer deleted the mes/native-run-no-focus-mode branch March 5, 2026 15:26
@mattstauffer
Copy link
Contributor Author

Amazing! Thank you!

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.

4 participants