Skip to content
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

Merged
merged 3 commits into from
Jul 8, 2024

Conversation

ognistik
Copy link
Contributor

@ognistik ognistik commented Jul 7, 2024

Fix for #461.

@@ -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')
Copy link

@SeseMueller SeseMueller Jul 7, 2024

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

Copy link
Contributor Author

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.

Copy link
Contributor

@Schneegans Schneegans left a 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
Comment on lines 383 to 387
// Ensure the window is on the current worksspace before showing
this.window.setVisibleOnAllWorkspaces(true, { skipTransformProcessType: true });
setTimeout(() => {
this.window.setVisibleOnAllWorkspaces(false, { skipTransformProcessType: true });
}, 100);
Copy link
Contributor

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 😄

Copy link
Contributor Author

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 👍️

@Schneegans
Copy link
Contributor

Thanks again!

@Schneegans Schneegans merged commit 7e622ac into kando-menu:main Jul 8, 2024
4 checks passed
@ognistik ognistik deleted the fix-mac-workspaces branch July 12, 2024 19:59
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