Skip to content

Commit d95b809

Browse files
committed
Fixed external monitor windows beneath taskbar
1 parent 201da94 commit d95b809

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

neat-windows/ScreenSizePosition.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ public Rectangle BottomRightQuarter()
235235
#region Multiple screens
236236
public Rectangle NextScreen(Rectangle window)
237237
{
238-
Rectangle nextScreenBounds = this.GetNextScreen().Bounds;
238+
Rectangle nextScreenBounds = this.GetNextScreen().WorkingArea;
239239
return new Rectangle(
240240
nextScreenBounds.X + ((nextScreenBounds.Width - window.Width) / 2),
241241
nextScreenBounds.Y + ((nextScreenBounds.Height - window.Height) / 2),
@@ -246,7 +246,7 @@ public Rectangle NextScreen(Rectangle window)
246246

247247
public Rectangle PreviousScreen(Rectangle window)
248248
{
249-
Rectangle previousScreenBounds = this.GetPreviousScreen().Bounds;
249+
Rectangle previousScreenBounds = this.GetPreviousScreen().WorkingArea;
250250
return new Rectangle(
251251
previousScreenBounds.X + (previousScreenBounds.Width - window.Width) / 2,
252252
previousScreenBounds.Y + (previousScreenBounds.Height - window.Height) / 2,

0 commit comments

Comments
 (0)