Bug 7832 - macOS menu bar incorrectly shows when client is in fullscreen
Summary: macOS menu bar incorrectly shows when client is in fullscreen
Status: NEW
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Client (show other bugs)
Version: trunk
Hardware: PC Unknown
: P2 Normal
Target Milestone: LowPrio
Assignee: Bugzilla mail exporter
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-08 16:16 CET by Samuel Mannehed
Modified: 2024-02-06 09:36 CET (History)
0 users

See Also:
Acceptance Criteria:


Attachments
Screenshot showing the problem when tlclient has focus (840.17 KB, image/png)
2022-02-08 16:16 CET, Samuel Mannehed
Details
Screenshot of how it looks when tlclient doesn't have focus (675.70 KB, image/png)
2022-02-08 16:17 CET, Samuel Mannehed
Details
Screenshot of how it looks with 4.13.0 client but with FLTK 1.3.7 (750.56 KB, image/png)
2022-02-10 17:13 CET, Samuel Mannehed
Details
Screenshot of how it looks with 4.13.0 client but with FLTK 1.3.7 (401.45 KB, image/png)
2022-02-10 17:19 CET, Samuel Mannehed
Details

Description Samuel Mannehed cendio 2022-02-08 16:16:26 CET
Created attachment 1021 [details]
Screenshot showing the problem when tlclient has focus

When the ThinLinc client is in fullscreen on a secondary monitor you can end up in a state where the macOS menu bar incorrectly shows on top of the ThinLinc client.

This can only be observed when you have "Displays have separate Spaces" enabled in the mission control settings in macOS. The reason this setting needs to be enabled is that the menu bar doesn't show up on the secondary screen otherwise.

The default setting on macOS is to have "Displays have separate Spaces" enabled.

Steps to reproduce the bug:

1. Verify that "Displays have separate Spaces" is enabled in mission control
2. Start the ThinLinc 4.14.0 client and select it to display in fullscreen on the secondary monitor
3. Connect
4. Click on the primary monitor to make the ThinLinc client loose focus
5. You will now see that the macOS menu bar appears in front of the ThinLinc client, this is fine
6. Now move focus back to the ThinLinc Client, this does now causes the "fullscreen" client window to adjust its position a few pixels down to appear below the menu bar.

The expected behavior in step 6 would be for the client to appear in front of the menu bar again, in proper full screen.

This bug can not be reproduced when the client is in fullscreen on the primary monitor (the monitor with the macOS dock), but that is likely due to bug 7818.

This bug is a regression in ThinLinc 4.14.0 and can not be reproduced with 4.13.0.
Comment 1 Samuel Mannehed cendio 2022-02-08 16:17:01 CET
Created attachment 1022 [details]
Screenshot of how it looks when tlclient doesn't have focus
Comment 3 Samuel Mannehed cendio 2022-02-08 19:52:16 CET
For this bug to happen you need the following settings:

 * "Displays have separate Spaces" enabled
 * Full screen on secondary monitor
 * "Send system keys" enabled
Comment 4 Samuel Mannehed cendio 2022-02-10 17:13:42 CET
Created attachment 1023 [details]
Screenshot of how it looks with 4.13.0 client but with FLTK 1.3.7

I can reproduce this bug with a ThinLinc 4.13.0 client using a vncviewer built with fltk-1.3.7. Since we can't reproduce the issue when using exact same client, but with a vncviewer built with fltk 1.3.5, we can say that the issue comes from the fltk upgrade.

One minor difference in the way the bug appears when using this client is that, instead of showing the menu bar after switching the focus back to tlclient, we get a black bar where the menu bar was. We still get the buggy behavior of the full screen session being pushed down with an offset as high as the menu bar. See the screenshot.
Comment 5 Samuel Mannehed cendio 2022-02-10 17:19:12 CET
Created attachment 1024 [details]
Screenshot of how it looks with 4.13.0 client but with FLTK 1.3.7
Comment 6 Samuel Mannehed cendio 2022-02-10 17:23:20 CET
I have seen once as well that we get a mouse offset, that mouse events don't end up where they should when interacting with the session. Unfortunately, I haven't been able to reproduce it, but perhaps it's racy.

We have this suggested fix for FLTK mouse offset issues, it hasn't been committed to FLTK, instead, they committed a workaround:

https://github.com/fltk/fltk/issues/287#issuecomment-959015611

Note You need to log in before you can comment on or make changes to this bug.