-
-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Mac Workspaces Switching #517
Conversation
@@ -488,6 +494,10 @@ export class KandoApp { | |||
// fullscreen applications. | |||
this.window.setAlwaysOnTop(true, 'screen-saver'); | |||
|
|||
// We set the Activation Policy to Accessory so that Kando doesn't show in dock | |||
// or the CMD Tab App Switcher | |||
app.setActivationPolicy('accessory') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is mac exclusive, a non-mac user needs to test it.
See this documentation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it. Added a commit with a condition which should make it mac-only.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot! Only one small remark from my side!
src/main/app.ts
Outdated
// Ensure the window is on the current worksspace before showing | ||
this.window.setVisibleOnAllWorkspaces(true, { skipTransformProcessType: true }); | ||
setTimeout(() => { | ||
this.window.setVisibleOnAllWorkspaces(false, { skipTransformProcessType: true }); | ||
}, 100); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As this does not seem to be required on Linux, I would prefer if that was only done on macOS. So maybe move this before the if (process.platform !== 'win32') {
into an if (process.platform === 'darwin' {
?
Also, you could mention #461 in the comment so that we know in the future where this weirdo comes from 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. Pushed a new commit with the change 👍️
Thanks again! |
Fix for #461.