[v2] Window out of bounds if not Fully screen
Author: makisukurisuCreated Feb 5, 2024Updated Sep 9, 2026
LabelsBug
Consent
- I verified that there is no open/closed issue for the same subject.
- I understand that YTMDesktop have NO affiliation with Google or YouTube
Current Behavior
If you make a window non-full-screen on a monitor no. 1, close the app, disconnect monitor no. 1 (or disable it using Win+P). After opening the program with it disabled, the main window will be rendered on the disabled monitor no. 1.
For my thoughts — have a look at an attached image. If you have the app on monitor 1, and it's disconnected, then X and Y coordinates are negative, and out of bounds of any monitor on my system => the app is not visible.
Expected Behavior
If the app is out of bounds — its position should be reset to some default value.
Steps To Reproduce
- Have multiple monitors (blocker);
- Un-maximize the window;
- Put it on one of the monitors you can disable;
- Close the app
- Disable the monitor app was on
- Open the app again
- See that it's out of bounds
- Enable the monitor back
- App is visible on it
YTMDesktop
2.0.0 (commit 6d0abf5)
OS
Windows
OS Version
11
Arch
x64
Installation way
.exe
Anything else?
My comments on a related issue: (maybe helpful)
- https://github.com/ytmdesktop/ytmdesktop/issues/918#issuecomment-1823856969
- https://github.com/ytmdesktop/ytmdesktop/issues/918#issuecomment-1925668162
Moved from #918, as requested (asked) in this comment
Source: ytmdesktop/ytmdesktop