-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fullscreened subwindows not centered FIXED #7752
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
Conversation
|
That's it! Someone review this, please. |
|
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.
|
|
This partially fixes the issue, but it doesn't move a maximized window's normal position, so when you un-maximize a window, the normal position of the window is in the wrong place. |
|
@messmerd explained in more detail how to recreate his bug. Results below: bug.mp4@regulus79 can also replicate the issue. |
Thanks however I can't for the life of me reproduce this. I'm testing https://lmms.io/download/pull-request/7595 on macOS, so either I'm testing wrong or the issue does not impact macOS. |
This can not be fixed. The subwindows use |
|
A commit was made that moves hidden windows also. |
I think it was @Rossmaxx that told me we can increase the visibility of things if it's necessary. |
|
Not me, might be @regulus79 |
I'm comparing this branch to master and what I find is that the size of the window was not preserved. Is that part of the fix? The title of this PR says "subwindows not centered" which I'm not sure what this means. For example, with this PR, if I drag the canvas around and then open a new piano roll editor, it can render way off the screen. If this is what's desired, we need some way of informing a user that all new windows will be opened relative to a central point on the canvas.
Now repeat this, but instead open the plugin interface for TripleOscillator, it renders on the visible canvas, not off the screen. |
|
@szeli1 The issue I found isn't too serious, so I wouldn't want it to hold up merging this PR if there's really no easy way to fix it. Maybe it'd be good to leave a comment about it though. |
Where would you leave a comment? |
|
@szeli1 Just before the for loop you added, I guess. Unless you think there's a better place. The idea is to just document what might be surprising behavior and why it can't really be fixed as far as we know. |
What do you mean by this?
It is intended, what if the user hides something and then moves and reopens it, I think it is better for it to reopen at the old location. The issue you were experiencing with TripleOscillator is because the window is created when the user opens the instrument, so QT handles the placement and all past movement doesn't apply to it. |
I do not agree, but if others agree, I won't press to hard on this.
Assuming this is desired, I think there should be some type of indication that something was rendered off-screen. The whole MDI canvas is very bad user experience (yet we're stuck with it for now) and clicking a button that reveals a window should reveal that window. Perhaps we move the viewport to bring it to focus? |
When showing or hiding a window on master branch, the size is lost.
Now that I explain this to a rubber duck, I can see this is the exact issue. The full screen is the correct size, but it's not "centered". Approving lol. |
Opened a dedicated bug report for this: #7790 |
closes #7751