-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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: remove Linux menubar workaround #11259
Conversation
I'll grab a thumbdrive this weekend (hopefully) and will test in Live sessions of those Ubuntus and Mint. |
Unfortunately the issue #6072 comes back with this PR testing on Ubuntu Focal 20.04 and Unity Desktop. The Gnome Based "Ubuntu" desktop is not affected. It has no integrated menu bar. Maybe we can check the environment
|
I don't think we need to check all old and exotic configurations. It would be easy to bring it back conditionally if we have users complaining. Relevant are the current desktops using the global menu bar. |
a94fe73
to
7e58af7
Compare
Good idea! I now do this with The hotkey issue issue is fixed for |
70d4378
to
5eb9e58
Compare
I tested affected Ubuntu 22.04 with Gnome and Unity, and for the former the hotkey issues are fixed (Spacebar for max. library). Also confirmed by the bug reporter https://mixxx.discourse.group/t/bug-with-full-screen-and-big-library-ubuntu/26596/13 |
It appears this is causing issues 1) on recent Ubuntu 22.04 and also 20.04 with the defaut window manager, as well as 2) with (unofficial) window manager extensions that enable the so-called 'global menu' (menubar is integrated in the desktop's top bar) after toggling fullscreen, e.g. when switching skins while in fullscreen mode: * 1) 2) menubar hotkeys not working anymore * 2) menubar is not restored in the title bar but in the windwo itself
5eb9e58
to
b65693c
Compare
Now this also includes a fix for #11281 @daschuer please give this a shot on 20.04 with Unity |
It works well as before. |
It does not longer work with Linux Mint Mate "Global Application Menu" on Tara (Ubuntu Bionic 18.4) |
What does not work? Hotkeys or is the menu gone? I looked into it again yesterday and I maybe we need to check for [affected DEs] and |
The manu bar is gone with MATE after going into full screen mode using F11. |
I suggest to exclude Mate also like Unity. |
Only if we can guarantee that it works with recent Mint with newer Gnome, not just v9 Tara with discontinued "Global Application Menu" extension (which can't be used in newer Mints IIUC). |
Do we still want to put that in 2.3.4? If Yes, I suggest to revert the approach. |
IIUC the hack was only added because there were issues with Ubuntu & Unity back then. And the hack didn't cause any issues on other distros & desktops. If there were no one noticed them, and amongst those who did no one reported it. Me for example, I thought seeing it failing with the vala appmenu was not Mixxx' fault but that of the vala appmenu plugin (working fine with all other apps btw). But now the hack also fails on a default Ubuntu 22.04 LTS without global menu (unmodified Gnome). What we know is, the hack is appearantly still required for some desktops that feature a global menu: the Ubuntu Unity desktop and Linux Mint with the Mate desktop (+ global menu enabled via a custom Gnome extension). So I think we should go with the blacklist = enable the hack only on demand. I'll test the Mate desktop and if And yes, I think this should be in 2.3.4, but we should of course test more and if that means releasing 2.3.4 unmodified, I'm fine with that. We release the fix in 2.3.5 later on. |
This is the only PR that holds back the 2.3.4 release. We try to raise the test coverage but we will unlikely ever reach 100%. So we will finally have three groups:
Options: I vote for 3 and I don't want 1. |
As I stated multiple times: if 2.3.4 should be released ASAP then do so. edit I agree with these categories, and I agree 3 would be the best, but.. So my preferred way is the blacklist (opt-in, eable the hack) by testing for desktops known to require the hack with FYI I just tested vanilla Mint 19 Tara (based on Ubuntu 18.04) with Mate desktop (based on Gnome2), and View hotkeys are also broken there. I can install 2.3 builds but not 2.3 CI builds (depend on non-existing libgcc-s1), and I didn't figure how to install the Gnome extension you mentioned. |
@ronso0 I agree, opt-in to the hack is the way to go. |
@uklotzde Do you experience any issues after toggling fullscreen on Fedora? Hotkeys in the View menu should always work (Ctrl+1, Spacebar) |
For my understanding the second commit is independent. It fixes the view hotkey in all of my tests. Mate/Ubuntu/Unity. The command line option is probably the best solution to build up the list of conditions for the hack. I consider the window menu after coming form full screen mode as a minor problem compared to having no menu bar at all. So for now, am convinced not to risk the this for all unknown/untested distros. Once the test coverage is big enough this question is no longer relevant. |
Yes, I can confirm the second commit fixes the hotkey also on the distros I tested. I'll open another PR with just those commits ASAP and that should then definitely go into 2.3.4 As much as I like the cmdline method I wonder if we should bother with that at all. Btw, the longer I deal with fullscreen I disagree the original issue (no menu bar in fullscreen) is a bug actually. |
continued in #11295 |
Thank you for the fast fix.
I think that pretty much depends on the application specific use case. In a presentation mode like a video player or web browser in kiosk mode the menu bar is anoying. For productive apps where you use full-screen just to make the best of the display space the menu bar is required. Mixxx is somwhere in between which is also the source if the discussion to get rid of the menu bar in windowed mode. Still like the discussed option to hide/show the menu bar with the Alt-key. Maybe this is also a "fix" for the disappeared menu bar in this case (2.4-alpha) |
Closing this for now even though #11295 is only a working around a workaround. |
It appears this is causing issues 1 on recent Ubuntu 22.04 1 and also 20.04 2 with the defaut window manager, as well as 2 with (unofficial) window manager extensions that enable the so-called 'global menu' (menubar is integrated in the window title bar) after toggling fullscreen (e.g. when switching skins while in fullscreen mode):
I also saw leaked controls lately when toggling fullscreen repeatedly, the VisibiltyConnections created in WMainMenubar.
Edit now this also includes a fix for #11281
Edit2 now also trying to fix #11294
TODO
verify no regressions on supported distros with and without global menu, e.g.
Fixes #11281
Footnotes
with 2.3.x https://mixxx.discourse.group/t/bug-with-full-screen-and-big-library-ubuntu/26596/6, no bug report yet ↩
with 2.5-prealpha, experienced myself, with Ubuntu Studio 20.04 (xfce desktop + vala-panel-appmenu) ↩
hotkey issues fixed, also confirmed by the original bug reporter https://mixxx.discourse.group/t/bug-with-full-screen-and-big-library-ubuntu/26596/13 ↩
no regression, like: View menu hotkeys cease to work after toggling fullscreen anyway ↩
the App bar is not visible while apps are fullscreen 🤷 or at least I didn't figure howto.. anyways, all hotkeys work after toggling fullscreen repeatedly ↩