Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Full screen doesn't work if "Show dock icon" is disabled #5535

Open
bla9kdog opened this issue Aug 5, 2023 · 3 comments
Open

Full screen doesn't work if "Show dock icon" is disabled #5535

bla9kdog opened this issue Aug 5, 2023 · 3 comments
Labels
interface Design, UX/UI issues macOS macOS issues

Comments

@bla9kdog
Copy link

bla9kdog commented Aug 5, 2023

Describe the issue
If I disable the “Show dock icon” option in UTM settings and relaunch the app, the “Full screen” button in the title bar changes to “Zoom.”

Screen.Recording.2023-08-06.at.01.15.19.mov

Configuration

  • UTM Version: 4.3.5
  • macOS Version: 13.2.1
  • Mac Chip (Intel, M1, ...): M1
@osy osy added interface Design, UX/UI issues macOS macOS issues labels Aug 19, 2023
@aboulfad
Copy link

I was getting the same behaviour, can't go fullscreen because the green button was stuck to "zoom". I reinstalled UTM, then full screen re-appeared. Toggling "show dock icon" didn't bring it back.

macOS Sonoma, Windows 11 guest.

@i-lina
Copy link

i-lina commented Oct 28, 2023

I am seeing this behavior with Windows Virtual machine on UTM 4.4 on macOS 14.1.

@ntoskrnl
Copy link

Same issue on latest version.

For me this settings makes the UTM hard to use. The window header overlays the guest OS's output. Probably at least 60px of the screen is covered and unusable.

If we look into the code, the "HideDockIcon " setting is setting the activation policy to .accessory here:

func applicationDidFinishLaunching(_ notification: Notification) {
if isDockIconHidden {
NSApp.setActivationPolicy(.accessory)
}
}

As per Apple's docs:

.accessory: The application doesn’t appear in the Dock and doesn’t have a menu bar, but it may be activated programmatically or by clicking on one of its windows.

To allow full screen mode, we can set window collection beahvior to NSWindow.CollectionBehavior.fullScreenPrimary, either through code or in the story board.

I tested it on local build, it did work. However, I still have the issue that I cannot exit the full screen mode because the menu bar and the title bar do not show up when I hover the mouse at the top of the screen. I do see the shadow and it looks like it is pushed out of the screen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
interface Design, UX/UI issues macOS macOS issues
Projects
None yet
Development

No branches or pull requests

5 participants