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
Patch appears outside the screen #2194
Comments
this sounds familiar and is most likely due to a canvas position outside your screen area (maybe the patch was saved on a multi-monitor setup before?). maybe check if you can recover the window via right-click on the taskbar and maximizing it (i currently don't remember what other options there are and am not on windows)? i remember that this was an issue in the past and thought it was fixed. are you working with the current Pd version? |
This can happen when you save a patch that is on a second screen and then open it again with a single screen. The patch would still have the original coordinates and therefore will not be visible. That's obviously a bug. One workaround is to select the patch window in the taskbar and then bring it back to the main display with Windows+Left/Right/Up/Down. |
related: #1805 |
Maximising the window from the task bar and resaving it has fixed the problem. I have not been using two monitors, so I am not sure what the original cause was, but if it happens again, I have a solution now. Thanks for the help. |
Workaround available. |
good to see that it worked for you this way! i agree with @Spacechild1's opinion though: it's a bug and other users will experience this again. maybe not a critical issue - but would be good nonetheless to have a better solution for this (like limiting the offset in a way that at least parts of the window stay visible for interaction ... or even aligning windows at the top left corner if they are otherwise overflowing the screen area on any side. not sure what behaviours are common for other apps. but it's obviously a common problem). @Spacechild1: would you suggest to keep this open or wait for similar reports? |
Let's keep it open for reference. It is important to point out that @Ars-subtilior did not use a second screen, so it is exactly not the same issue as in #1805 (which appears to have been fixed), but they are probably related. |
just a random guess - but it could simply be this coordinate wrapping causing patches to open outside on the right if they were saved with a slightly negative position like
@Ars-subtilior do you by any chance remember where the window was maximized from (if you have these window transition animations activated anyway)? |
I maximised the window from the task bar. Using any of the other options (move / size) did nothing. |
i did a quick test on Win11 with Pd0.54-1 (with a 1920x1080 screen):
now i'm not sure if this is the same as the case reported by @Ars-subtilior, but it's quite likely. simple solutions for this could be:
i think the scenario that was covered by the wrapping behaviour is a multi-monitor setup. in that case it works well for standard resolutions. but as soon as resolutions differ, it creates surprising results. EDIT: corrected clip suggestion considering negative origin (i hope). |
for the clipping-option, changing the Line 52 in 0259d00
adding to that: i removed Line 391 in 0259d00
|
@Lucarda are there any objections from your side concerning this clipping solution? for people working on multi-screen setups, this shouldn't change anything - they can still distribute their windows as they wish and save/restore them that way. but it should protect users from disappearing windows (if i'm not wrong). i would go ahead and test this with more setups if it sounds right and possibly create a PR. |
@ben-wes go ahead with the PR. I just tested it on Win11 with multiple displays and it all works fine for me. :) EDIT: i had pasted your code from above without any |
alright - thanks a lot for testing! :) |
PR is created after a bit more testing on my side as well. hope i did that right! |
I have created a patch, which I have opened several times. Today, when I tried to open it, it appears in the taskbar, but will not open and the preview in the taskbar is empty. I have tried shutting down Pd and restarting it, I have restarted my PC (running Windows 11) but the problem persists. I had noticed this with some older patches I was not worried about losing after getting a new PC - my old one ran Windows 10. Is this a known problem? Is this a Windows 11 problem? Is there a solution?
The text was updated successfully, but these errors were encountered: