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

Fullscreen broken on macOS 12 #1361

Closed
samhed opened this issue Oct 28, 2021 · 9 comments
Closed

Fullscreen broken on macOS 12 #1361

samhed opened this issue Oct 28, 2021 · 9 comments
Labels
bug Something isn't working

Comments

@samhed
Copy link
Member

samhed commented Oct 28, 2021

Describe the bug
When starting a connection in fullscreen I first get the Mac title bar appearing above the vncviewer window. The vncviewer window is offset by the height of the title bar and the bottom part of the window is obscured, as seen in the first screenshot below.

My first instinct in this case was to toggle fullscreen on and off to attempt to fix it. This only made things worse.

As seen in the second screenshot below, a big part up top gets obscured instead. Additionally the mouse input gets a huge offset as well. Mouse clicks and movements appear on the remote ~300 pixels above where I actually click or move.

Note that when vncviewer has focus the offset above the window appears black, when taking the screenshot the desktop background appeared.

To Reproduce
Steps to reproduce the behavior:

  1. Open vncviewer options and enable fullscreen on the monitor with the Mac application dock
  2. Connect
  3. See that the Mac title bar still shows and a part of the window at the bottom is obscured
  4. Toggle fullscreen off using the F8 menu
  5. Toggle fullscreen on
  6. See that a large part at top of the vncviewer window becomes obscured
  7. Get annoyed that mouse input is offset vertically

Expected behavior
I expect the fullscreen window to cover the entire monitor and the mouse input to be accurate.

Screenshots
When first connecting:
when_first_connecting

After toggling fullscreen:
after_toggling_fullscreen

Client (please complete the following information):

Server (please complete the following information):

  • OS: Fedora 34
  • VNC server: TigerVNC
  • VNC server version: 1.11.0
  • Server downloaded from: Fedora 34 repos
  • Server was started using: /usr/bin/Xvnc :50 -SecurityTypes=None -ac -log *:stderr:100

Additional context
I see the same problems with my own builds of vncviewer. I built using both FLTK 1.3.5 and 1.3.7, the problem persists in both cases.

I can't reproduce the issue with vncviewer 1.11.0. This is likely a regression from #1282

When using only one monitor, it doesn't matter if fullscreen is enabled using "Current", "All" or "Select monitors". However, when using multiple monitors, the issue does NOT appear when using "All" or by selecting all monitors. When using multiple monitors the issue also does NOT appear when starting vncviewer in fullscreen on any of the secondary monitors. It only happens on the primary monitor that has the application dock.

@samhed samhed added the bug Something isn't working label Oct 28, 2021
@CendioOssman
Copy link
Member

The two problems are entirely unrelated. I'll move the first one to a separate bug.

@CendioOssman
Copy link
Member

Since the two bugs turned out to be unrelated, there was some confusion in the initial testing. The second bug is caused by the FLTK upgrade. Works fine with FLTK 1.3.5, but breaks with FLTK 1.3.7. More digging is needed to figure out what is wrong.

@CendioOssman
Copy link
Member

Reported to FLTK in fltk/fltk#287.

@bphinz, this will also likely mean manual patching of FLTK. Once I figure out a workaround.

@CendioOssman
Copy link
Member

@bphinz, a fix is now in place on fltk/fltk#287 so if you could have a look at adding that patch to your builds.

Should probably also include the patch on fltk/fltk#288.

@CendioOssman
Copy link
Member

This should be the last blocker for the release, so if you could let us know when you've applied the patches @bphinz then we can put out a final 1.12 release.

@bphinz
Copy link
Contributor

bphinz commented Nov 4, 2021 via email

@CendioOssman
Copy link
Member

@bphinz, a different fix ended up in FLTK. Could you have a look at swapping the patch to that so we're all running the same thing?

@bphinz
Copy link
Contributor

bphinz commented Nov 8, 2021 via email

@CendioOssman
Copy link
Member

I can confirm that this is now fixed in the nightly builds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants