WindowTop / WindowTop-App

Set window on top, make it dark, transparent and more
Other
1.12k stars 68 forks source link

[Shrink] Live preview stop working when the user mimimize the hidden window #242

Closed gileli121 closed 2 years ago

gileli121 commented 2 years ago

A user reported an issue that I saw also myself. When you enable shrink with live preview for the first time, live preview works and the real window is hidden. But you still see the real window in the taskbar.. and when you click on the window icon in the taskbar, it will minimize the hidden window.

This will break the live preview because the window needs to be tricked that it is still not offscreen and also the OS API requires that the window will not be minimized.

In addition, there is a way to minimize the hidden window by pressing the "Show desktop" button in the taskbar. In this case, even when the window is fully hidden, the taskbar is still able to minimize it and break the live preview.

To fix the bug, need to do 2 things

  1. Fix the bug that when you shrink on the first time, the window is still not hidden from the taskbar
  2. Implement logic that will un-minimize the hidden window in case it was minimized by the "show desktop" button
gileli121 commented 2 years ago

The problem was fixed in v5.15