vanowm / MasterPasswordPlus

Various enhancements for build-in "master password" (MP) -Locks master security device on demand or after specified time -Prompts for MP on browser startup -Suppresses all or duplicate MP prompts -Locks up entire application or individual windows
https://addons.thunderbird.net/thunderbird/addon/master-password
GNU General Public License v3.0
9 stars 2 forks source link

Minimized window looses it's original position on screen after restart #111

Closed vanowm closed 7 years ago

vanowm commented 7 years ago

When option "Lock on minimized" is set to "All", and browser restarted while a window was minimized, the minimized window looses it's original position on screen when restored and moves to top left corner instead.

This causes by a fix for Windows aero peek issue, when taskbar preview would not get updated after window was locked/unlocked.

Komarq commented 7 years ago

+1 for fix removal (or make it configurable if this is possible). In fact, this fix was a reason for modyfing your addons and removing lines with setting -32000 as position.

vanowm commented 7 years ago

So far I have fixed this issue with properly saving original position coordinates, however aero peek still doesn't show window (when you hover over window preview on taskbar it temporary hides all other windows to show were selected window is). Since I couldn't find a way update windows taskbar preview image of minimized windows (http://stackoverflow.com/questions/41765953/trigger-update-for-task-bar-preview-thumbnail-on-minimized-window), briefly restore window is a must, so I'm adding a hidden option that controls how minimized windows is restored during lock/unlock, to outside of current screen (the -32000 coordinates, flicker free) or at original coordinates, window will be visible for a moment.