diff options
author | Deniz Türkoglu <denizt@users.noreply.github.com> | 2023-08-08 06:53:19 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-07 22:53:19 +0200 |
commit | 8f3082c3ef3cc99441ad51a2fb5690ec2933521b (patch) | |
tree | 5dac5a5a9ab568262f6cf33b203000b3752ab2fe /src/Main/Forms/MainFrame.cpp | |
parent | fba1943d87eb604edc5c4f7d86878425eb48cd6b (diff) | |
download | VeraCrypt-8f3082c3ef3cc99441ad51a2fb5690ec2933521b.tar.gz VeraCrypt-8f3082c3ef3cc99441ad51a2fb5690ec2933521b.zip |
Call EnsureVisible() for OSX in OnActivate (#1167)
When using multiple monitors, the resolution can change in OSX,
during plug-in/off off the display(s). To avoid window becoming
non-usable, there is EnsureVisible, that is called in several
places.
However, if you minimize VeraCrypt on the bigger screen, and
restore it in the main screen of a MacBook, after unplugging, the
window will become unusable (unless you know that clicking 'About'
calls EnsureVisible :-)).
Call EnsureVisible OnActivate so MainFrame is always functional
across screens, even when minimized.
Diffstat (limited to 'src/Main/Forms/MainFrame.cpp')
-rw-r--r-- | src/Main/Forms/MainFrame.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Main/Forms/MainFrame.cpp b/src/Main/Forms/MainFrame.cpp index 12389536..de1c99a4 100644 --- a/src/Main/Forms/MainFrame.cpp +++ b/src/Main/Forms/MainFrame.cpp @@ -737,6 +737,7 @@ namespace VeraCrypt #ifdef TC_MACOSX if (event.GetActive() && Gui->IsInBackgroundMode()) Gui->SetBackgroundMode (false); + EnsureVisible(); #endif event.Skip(); } |