flyingpie / windows-terminal-quake

Turn any app into a Quake-style toggleable app.
https://wtq.flyingpie.nl
MIT License
547 stars 35 forks source link

Feature Request: display badge in taskbar #125

Closed PiAlma closed 2 months ago

PiAlma commented 2 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 2 months ago

Hey @PiAlma Thank you for reporting this!

This seems like some sort of bug.

What does the badge actually mean?

PiAlma commented 2 months ago

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

flyingpie commented 2 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 2 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 2 months ago

It works ! Thank you.