flyingpie / windows-terminal-quake

Enable Quake-style dropdown for (almost) any application.
https://wtq.flyingpie.nl
MIT License
596 stars 39 forks source link

Feature Request: display badge in taskbar #125

Closed PiAlma closed 7 months ago

PiAlma commented 7 months ago

I would like to use wtq (v2.0.0-prerelease6) with teams, but when the window is controlled by wtq, the badge disappears from the taskbar. So I am unable to see if there are pending messages.

No wtq → with badge image

With wtq → no badge image

Could you add an option to display the badges in taskbar for windows controlled by wtq?

flyingpie commented 7 months ago

Hey @PiAlma Thank you for reporting this!

This seems like some sort of bug.

What does the badge actually mean?

PiAlma commented 7 months ago

The badge turn red when I have unread messages (teams is a messaging app).

flyingpie commented 7 months ago

@PiAlma I've uploaded a release that contains support for the "TaskBarIconVisibility"-option.

Could you set that to "AlwaysVisible", and see if the problem persists?

https://github.com/flyingpie/windows-terminal-quake/releases/tag/v2.0.0-pre7

flyingpie commented 7 months ago

Note to self: my guess at this point is that this is due to WTQ setting window style flags, usually meant to show/hide the taskbar icon/button.

The "badges"-style functionality is likely handled through the same path, and we presumably strip it off during the icon visibility toggle.

Here's the win32 function we use to toggle visibility: http://winapi.freetechsecrets.com/win32/WIN32SetWindowLong.htm Specifically, we're the "GWL_EXSTYLE" flag.

The pre7 release adds the ability to disable this behavior altogether, which I'm hoping is gonna confirm or deny whether this part of the app is indeed the culprit.

PiAlma commented 7 months ago

It works ! Thank you.