Author Topic: while opening "Display Elements" the window opens on monitor that is not present  (Read 429 times)

Offline csmothers

  • Newbie
  • *
  • Posts: 2
    • View Profile
I kept repeatedly trying to access the "Display Elements" window, but could not.
I tried the toolbar button and the View -> Windows -> Display Elements to try to bring up the window.
I even tried View -> Windows -> Reset to Defaults several times.
I closed and re-opened xlights.
I still could not access the "Display Elements" window.

This was while using my laptop. Windows 10 and xlights 2020.43

This was all while using my laptop by itself - no second monitor.

At some point, I re-attached my extra monitor back at my office desk.
 
I tried again to open "Display Elements" and lo and behold, it appeared on my 2nd monitor.

Would it be possible for xlights to do one of two things?
a. check whether a display is active before opening a window on to it. If it is not present then open the window on the primary display.
b. put the "Display Elements" window back to the primary display when View -> Windows -> Reset to Defaults

This might conflict with xlights trying to restore windows back to their original locations when restarting.

How to reproduce or test the fix:
- using a system with more than one monitor currently connected
- open the "Display Elements" window.
- move the Display Elements window to the second monitor
- close xlights
- detach the monitor
- open xlights
- try to open the "Display Elements" window by using either the toolbar button or the View -> Windows -> Display Elements.
- try View -> Windows -> Reset to Defaults
If you cannot get to the Display Elements window then there is a problem.
If you can get to the Display Elements window, then the issue has been resolved.

--
Charles


Offline csmothers

  • Newbie
  • *
  • Posts: 2
    • View Profile
I opened a new issue at github.com/smeighan/xLights/issues/2290

This post may be removed if that is appropriate.
--
Charles


Offline algerdes

  • Full Member
  • ***
  • Posts: 164
    • View Profile
If you have this happen, you can go to "View -> Windows -> Doc All" and all your windows will return to the attached display. 

We keep two different Perspectives - One for dual monitor, and one for single monitor on those computers that may or may not have the second monitor attached.