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

Fullscreened subwindows not centered FIXED #7752

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

szeli1
Copy link
Contributor

@szeli1 szeli1 commented Mar 3, 2025

closes #7751

@bratpeki bratpeki self-assigned this Mar 3, 2025
@bratpeki
Copy link
Member

bratpeki commented Mar 3, 2025

That's it! Someone review this, please.

@bratpeki bratpeki requested a review from tresf March 3, 2025 22:07
@tresf
Copy link
Member

tresf commented Mar 3, 2025

That's it! Someone review this, please.

@bratpeki I see you've marked me for approval however I've never seen this specific bug before. I read #7751 but I don't see steps to reproduce.

{
if (curWindow->isVisible() && curWindow->isMaximized() == false)
{
curWindow->move(curWindow->x() - scrollX, curWindow->y() - scrollY);
Copy link
Member

Choose a reason for hiding this comment

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

A quick glance shows that scrollX is calculated from minX, which also has a loop and a conditional that are nearly identical to the code added in this PR. I feel this logic can be simplified.

@bratpeki
Copy link
Member

bratpeki commented Mar 4, 2025

I didn't specify it here, my bad! The steps to reproduce are given in the Google Drive video in the related issue, but I'll write them out here as well.

  1. Open any LMMS subwindow in fullscreen (Piano roll, Mixer, Notepad...)
  2. Close it
  3. Move around in the workspace
  4. Open that same subwindow again
  5. The subwindow is no longer centered

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

Successfully merging this pull request may close these issues.

[Bug] Fullscreened subwindows not centered after #7595
3 participants