Search Issue Tracker

Fixed in 2022.1.X

Fixed in 2021.2.X

Votes

0

Found in

2021.2.0a16

2021.2.0b5

2022.1

Issue ID

1354879

Regression

No

[macOS] MoveMainWindowTo ignores Dock space when changing resolution and moving app to given coordinates from Fullscreen mode

MacOS

-

Steps to reproduce:
1. Open the attached project ("1354879.zip")
2. Open "SampleScene"
3. Build and run on standalone
4. Enter Fullscreen mode (Full Screen Mode -> FullScreenWindow)
5. Press "Snap to bottom right" button

Expected result: Even though given coordinates overlap with Dock, the app should snap to Dock since Dock area is excluded from workArea
Actual result: The app snaps to exact given coordinates, ignoring the Dock space

Reproducible with: 2021.2.0a16, 2021.2.0b5, 2022.1.0a4
Couldn't test with versions older versions as MoveWindowAPI was introduced in 2021.2.016

Notes:
- Doesn't reproduce in Windowed mode
- There's additional information to what exact coordinates the app is being snapped to in the player log (https://docs.unity3d.com/2021.2/Documentation/Manual/LogFiles.html)

  1. Response avatar

    Resolution Note (fix version 2022.1):

    Fixed in 2022.1.0a12

  2. Response avatar

    Resolution Note (fix version 2021.2):

    Fixed in 2021.2.0b16

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.