Skip to content

Prevent Espanso Sync Tool window from stealing focus. - #1982

Closed
morgan-dgk wants to merge 2 commits into
espanso:devfrom
morgan-dgk:fix/prevent-sync-tool-stealing-focus
Closed

morgan-dgk wants to merge 2 commits into
espanso:devfrom
morgan-dgk:fix/prevent-sync-tool-stealing-focus

Conversation

@morgan-dgk

@morgan-dgk morgan-dgk commented Jun 6, 2024 •

Copy link
Copy Markdown
Collaborator

fixes #1976
fixes #2156

Removing call to xdg_activation should prevent the sync tool window from stealing focus for compositors which support the xdg_activation protocol.

Tested under Hyprland/wlroots and appears to resolve issue, but more testing should be performed before merging.

@morgan-dgk
morgan-dgk force-pushed the fix/prevent-sync-tool-stealing-focus branch from 9ec1285 to bd25b6b Compare June 6, 2024 01:40
Removing call to `xdg_activation` should prevent the sync tool
window from stealing focus for compositors which support the
xdg_activation protocol.

Tested under Hyprland/wlroots and appears to resolve issue,
but more testing should be performed before merging.
@morgan-dgk

Copy link
Copy Markdown
Collaborator Author

I'm unsure why clippy is failing on macos/windows build. No changes have been made there.

@AucaCoyan

AucaCoyan commented Jun 12, 2024 •

Copy link
Copy Markdown
Collaborator

Prolly because clippy receives updates every few months and we use stable rust (not pinned). So to keep up we need to fix the "new" lints. This happens to fail when the CI is run with latest rust

@AucaCoyan

Copy link
Copy Markdown
Collaborator

Hi! I fixed clippy and forgot to tell you 😅.
Can you pull latest dev and push it again? Thank you Morgan!

@AucaCoyan

Copy link
Copy Markdown
Collaborator

@morgan-dgk Hi! just a friendly reminder whenever you can 🥰

@AucaCoyan

Copy link
Copy Markdown
Collaborator

These clippy warning that are jumping out are solved in #2104 , so I'll wait to merge that first and then recheck this 👍

@Mte90

Mte90 commented Jan 24, 2025

Copy link
Copy Markdown
Contributor

Just a ping to this because it is very annoying that window that stole the focus, I had to disable espanso.

@Mte90 Mte90 mentioned this pull request Jan 24, 2025
1 task
@Mte90

Mte90 commented Jan 24, 2025

Copy link
Copy Markdown
Contributor

I tried that patch I get the window flash #2156 but there is no focus.
Anyway doesn't seems that the espanso detection system works at all.

@AucaCoyan

Copy link
Copy Markdown
Collaborator

I couldn't manage to push to this fork again. I didn't know how I could before 😆 .
Copied the changes in #2212 and merged, so it's superseded

@AucaCoyan AucaCoyan closed this Jan 24, 2025
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.

Espanso Sync Tool window on wayland Switching Layouts restarts SyncTool and takes focus

3 participants