Hide Shortcut Guide when screenshots are taken (#605)

This commit is contained in:
Bartosz Sosnowski
2019-10-31 10:26:24 +01:00
committed by GitHub
parent b767773742
commit e6afd33621
5 changed files with 22 additions and 0 deletions

View File

@@ -385,6 +385,16 @@ void D2DOverlayWindow::set_theme(const std::wstring& theme) {
}
}
/* Hide the window but do not call on_hide(). Use this to quickly hide the window when needed.
Note, that a proper hide should be made after this before showing the window again.
*/
void D2DOverlayWindow::quick_hide() {
ShowWindow(hwnd, SW_HIDE);
if (thumbnail) {
DwmUnregisterThumbnail(thumbnail);
}
}
float D2DOverlayWindow::get_overlay_opacity() {
return overlay_opacity;
}