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

only start in fullscreen if enabled in Preferences or via command line arg #3493

Merged
merged 1 commit into from
Jan 3, 2021

Conversation

ronso0
Copy link
Member

@ronso0 ronso0 commented Dec 28, 2020

... by simply exiting fullscreen and maximizing the window if fullscreen is not enabled in Preferences.

The issue is that saveGeometry() also saves the fullscreen state in [MainWindow] geometry which is restored on next start regardless of the explicit configuration. Then Mixxx doesn't see a fullscreen flag thus the Fullscreen checkbox is not updated programmatically.
I didn't investigate how that would affect other actions in the View menu and can render those hotkeys unfunctional when restoring unrequested fullscreen mode, but but hopefully that's fixed, too.

https://bugs.launchpad.net/mixxx/+bug/1882474
https://bugs.launchpad.net/mixxx/+bug/1904135
https://bugs.launchpad.net/mixxx/+bug/1909485

one small issue remains:
when Mixxx is started in fullscreen after being shutdown in windowed mode the launch progress is in windowed mode.
when starting in fullscreen mode repeatedly the launch progress is also fullscreen.

@ronso0
Copy link
Member Author

ronso0 commented Dec 28, 2020

labeled 'Major bug' because in https://bugs.launchpad.net/mixxx/+bug/1882474 it was reported that previously View menu hotkeys would no work (unconfirmed though)

@ronso0 ronso0 added this to the 2.3.0 milestone Dec 28, 2020
@ronso0 ronso0 force-pushed the fullscreen-menu-hotkeys branch from 4a0cc26 to d9889f8 Compare December 28, 2020 21:14
@Holzhaus
Copy link
Member

I didn't even notice this because I always fullscreen Mixxx using <Super+f> on Pop Shell (and i3 before that). In that case the fullscreen checkmark in the view menu is never set 😄

I just tested and noticed the following:

  1. Start mixxx in windowed mode
  2. Enable fulllscren via the View menu -> Checkmark is set and mixxx is in full screen mode
  3. Close Mixxx via File -> Exit
  4. Start Mixxx again -> Mixxx starts in full screen, but the checkmark in the view menu is not set

@ronso0
Copy link
Member Author

ronso0 commented Dec 29, 2020

Oh no, not that again. I remember there were issues with File > Exit vs. system command 'Close window'/window button X.
IIRC Mixxx crashed when using File > Exit the X button. Are you sure Mixxx shuts down cleanly?

Can not confirm the fullscreen issue, though, neither with x/'close window' nor File > Exit. That's exactly was this is trying to fix ;)

@uklotzde
Copy link
Contributor

I didn't even notice this because I always fullscreen Mixxx using <Super+f> on Pop Shell (and i3 before that). In that case the fullscreen checkmark in the view menu is never set smile

I just tested and noticed the following:

1. Start mixxx in windowed mode

2. Enable fulllscren via the View menu -> Checkmark is set and mixxx is in full screen mode

3. Close Mixxx via File -> Exit

4. Start Mixxx again -> Mixxx starts in full screen, but the checkmark in the view menu is _not_ set

The check mark never worked for me after restarting Mixxx.

@ronso0
Copy link
Member Author

ronso0 commented Dec 30, 2020

Well, does it now?
which window manager do yo use?
for window managers that don't display title bars there is no difference between maximized and fullscreen, right?

The mentioned bugs only affect OS with 'regular' window decoration I guess.

@uklotzde
Copy link
Contributor

uklotzde commented Jan 2, 2021

Now the full-screen state is not remembered between restarts. The window is only maximized after restarting. The check mark in the menu is not set which is at least consistent.

But I tested after merging into main and resolving some conflicts with the CoreServices extraction, not 2.3 yet.

@ronso0
Copy link
Member Author

ronso0 commented Jan 2, 2021

Now the full-screen state is not remembered between restarts. The window is only maximized after restarting.

That's correct. No fullscreen mode unless you check it in Preferences, or toggle it per session via command line.

Copy link
Contributor

@uklotzde uklotzde left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me on GNOME Shell.

@ronso0
Copy link
Member Author

ronso0 commented Jan 3, 2021

@daschuer Could yo try this with Ubuntu, please?

@Holzhaus
Copy link
Member

Holzhaus commented Jan 3, 2021

Now the full-screen state is not remembered between restarts. The window is only maximized after restarting.

That's correct. No fullscreen mode unless you check it in Preferences, or toggle it per session via command line.

Ah okay. For me it was confusing because I use a tiling window manager and maximized is the same as full screen.

What's the rationale for maximizing? Why not just open the window normally?

@ronso0
Copy link
Member Author

ronso0 commented Jan 3, 2021

I decided to 'maximize' in order to have a compromise between unrequested fullscreen and previously fullscreen, then starting in 'normal' window.
I guess it doesn't make much of a difference: either users know about the 'always fullscreen' option or they don't and toggle fullscreen manually after each start.

we could make that option more discoverable with a popup: when users toggle fullscreen manually, incl. a checkbox "[ ] don't show that hint again"

@uklotzde
Copy link
Contributor

uklotzde commented Jan 3, 2021

Merging this now. If it does not work for someone we will get feedback soon, hopefully ;) Thank you! LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants