mltframework / shotcut

cross-platform (Qt), open-source (GPLv3) video editor
https://www.shotcut.org
GNU General Public License v3.0
10.84k stars 1.12k forks source link

Graphics issue with QT6 and monitor power saving #1526

Open andrewk8 opened 6 months ago

andrewk8 commented 6 months ago

Windows 10 22H2. NVidia GeForce GTX 1660 - latest "studio" driver Dual monitor. But sometimes I use it in single monitor mode if I am using a laptop with the other monitor. Windows is set to turn the monitors off after a few minutes of inactivity. The computer itself is set to stay on all the time (no sleep, no hibernate, etc.).

I noticed this issue on all Shotcut builds using QT6. Currently using 24.02.29.

There's some combination of having the monitors go into power-saving mode and virtual desktops. I haven't been able to find the necessary ingredients or the exact sequence to reproduce this issue on command. But it seems to happen quite frequently. Typically, it's waiting for an export to run. I may leave the computer while an export is running, then come back at a later time. It's long enough that the monitor(s) powers off per the Windows power management setting.

When you jiggle the mouse to wake the monitors, the graphics of the Shotcut window are a little offset. The mouse interactions with the Shotcut GUI are not registering in the correct place. The work-around is to restore-down the Shotcut window, then maximize it again. Then the mouse and GUI are tracking together correctly.

See attached video.

https://github.com/mltframework/shotcut/assets/16465258/eb392c91-f73c-400a-b547-68362d71b0b4