mirror of
https://github.com/kangyu-california/PersistentWindows.git
synced 2025-05-11 04:55:39 +02:00
reliably detect full screen mode
This commit is contained in:
parent
a5dd48becf
commit
5a794baf8b
1 changed files with 2 additions and 1 deletions
|
@ -1164,7 +1164,8 @@ namespace PersistentWindows.Common
|
||||||
RECT screen = display.Position;
|
RECT screen = display.Position;
|
||||||
RECT intersect = new RECT();
|
RECT intersect = new RECT();
|
||||||
if (User32.IntersectRect(out intersect, ref screenPosition, ref screen))
|
if (User32.IntersectRect(out intersect, ref screenPosition, ref screen))
|
||||||
isFullScreen = intersect.Equals(screen); //fully covers at least one screen
|
if (intersect.Equals(screen)) //fully covers at least one screen
|
||||||
|
isFullScreen = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue