Skip to content

Add timer to delay TaskThumbWindow closing#915

Merged
dremin merged 2 commits intocairoshell:masterfrom
Cosebdd:bugfix/thumbnail-grace-period
Oct 10, 2025
Merged

Add timer to delay TaskThumbWindow closing#915
dremin merged 2 commits intocairoshell:masterfrom
Cosebdd:bugfix/thumbnail-grace-period

Conversation

@Cosebdd
Copy link
Copy Markdown
Contributor

@Cosebdd Cosebdd commented Oct 7, 2025

Added another timer to TaskButton.xaml.cs to prevent the TaskThumbWindow from closing prematurely.

I couldn’t find any built-in constant for the “mouse away” delay, so I set it to 50 ms, which felt adequate during testing.

Fixes #914

Demo:

mXhIwfSoCC.mp4

@dremin
Copy link
Copy Markdown
Collaborator

dremin commented Oct 9, 2025

This looks good, thanks!

I couldn’t find any built-in constant for the “mouse away” delay, so I set it to 50 ms, which felt adequate during testing.

How does using Interval = new TimeSpan(interval.Ticks / 2) feel for you? That should end up around 200ms with system defaults, and feels a bit better to me.

@Cosebdd
Copy link
Copy Markdown
Contributor Author

Cosebdd commented Oct 9, 2025

I have no objections; I’ve updated the PR.

Copy link
Copy Markdown
Collaborator

@dremin dremin left a comment

Choose a reason for hiding this comment

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

Thanks!

@dremin dremin merged commit e73bc24 into cairoshell:master Oct 10, 2025
5 checks passed
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.

Unable to access TaskThumbWindow if there are empty pixels between taskbar buttons and the thumbnail

2 participants