显示时不遮挡任务栏

This commit is contained in:
liufei
2022-01-06 15:41:57 +08:00
parent e9063a176e
commit fb26834938

View File

@@ -27,7 +27,7 @@ namespace GeekDesk.Util
double left = SystemParameters.VirtualScreenLeft; double left = SystemParameters.VirtualScreenLeft;
double top = SystemParameters.VirtualScreenTop; double top = SystemParameters.VirtualScreenTop;
double width = SystemParameters.VirtualScreenWidth; double width = SystemParameters.VirtualScreenWidth;
double height = SystemParameters.VirtualScreenHeight; double height = SystemParameters.WorkArea.Height + 20;
double right = width - Math.Abs(left); double right = width - Math.Abs(left);
double bottom = height - Math.Abs(top); double bottom = height - Math.Abs(top);
@@ -36,7 +36,6 @@ namespace GeekDesk.Util
switch (position) switch (position)
{ {
case MousePosition.LEFT_BOTTOM: case MousePosition.LEFT_BOTTOM:
afterWidth = 0; afterWidth = 0;
afterHeight = window.Height; afterHeight = window.Height;