Skip to content

Commit

Permalink
[VCM] Tweak toolbar top right vertical offset to allow closing apps (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyoyuppe committed Jul 15, 2021
1 parent 39f0db8 commit cdfb566
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Toolbar* toolbar = nullptr;
const int REFRESH_RATE = 100;
const int OVERLAY_SHOW_TIME = 500;
const int BORDER_OFFSET = 12;
const int TOP_RIGHT_BORDER_OFFSET = 40;

Toolbar::Toolbar()
{
Expand Down Expand Up @@ -256,7 +257,7 @@ void Toolbar::show(std::wstring position, std::wstring monitorString)
else //"Top right corner" or non-present
{
positionX = monitorInfo.right() - overlayWidth - BORDER_OFFSET;
positionY = monitorInfo.top() + BORDER_OFFSET;
positionY = monitorInfo.top() + TOP_RIGHT_BORDER_OFFSET;
}

HWND hwnd;
Expand Down

0 comments on commit cdfb566

Please sign in to comment.