#1282·ytmdesktop

[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

  1. Have multiple monitors (blocker);
  2. Un-maximize the window;
  3. Put it on one of the monitors you can disable;
  4. Close the app
  5. Disable the monitor app was on
  6. Open the app again
  7. See that it's out of bounds
  8. Enable the monitor back
  9. App is visible on it

YTMDesktop

2.0.0 (commit 6d0abf5)

OS

Windows

OS Version

11

Arch

x64

Installation way

.exe

Anything else?

image

My comments on a related issue: (maybe helpful)

Moved from #918, as requested (asked) in this comment