jahnf / Projecteur

Linux Desktop Application for the Logitech Spotlight device (and similar devices) - Digital Laser Pointer
MIT License
379 stars 33 forks source link

spotlight update broken under wine powerpnt fullscreen #72

Closed fmuelle4711 closed 4 years ago

fmuelle4711 commented 4 years ago

Description When running powerpnt in full screen (F5) presentation mode under wine, the spotlight shows up initially but does not follow move movements. When move is stopped and after a wait moved again, spotlight shows at the new mouse position but still does not follow mouse movement. The mouse cursor meanwhile is still moving.

I suspect a QT5/Wayland problem. Investigating a work around, I noticed that if I change the spotlight.cc code to always call emit spotActiveChanged(true) -- even if the timer is already active -- the spotlight tracks the move but updates are too slow and the spotlight is blinking (active on/off). Is there another QT5 method to more gracefully update the spotlight (lower overhead in repainting)?

Notice that the problem is unique to wine fullscreen. OpenOffice or other fullscreen apps don't show this problem.

To Reproduce QT_QPA_PLATFORM=xcb ./projecteur -D "some device"

Expected behavior Shoptlight should track mouse movement.

Desktop/Linux Environment (please complete the following information): fedora 31 gnome 3.34.2-1.fc31 wayland xcb qt5-5.13.2-1.fc31 old wine-staging-3.6-1 Did you built Projecteur yourself?: y but does not matter Projecteur 0.7-alpha.40

Screenshots cannot show that way

fmuelle4711 commented 4 years ago

Never mind, I tracked it down to a wine. issue. You may close it.

jahnf commented 4 years ago

Thank for reporting and investigating

fmuelle4711 commented 4 years ago

Looks like I was wrong. The problem goes away when an external monitor is plugged in, and it remains fixed even after an external monitor is unplugged. I may have to investigate further, but it doesn't appear to be wine after all.

fmuelle4711 commented 4 years ago

Update: It appears to be wayland. The fix is to change the screen resolution to something, then start powerpnt, then change the screen resolution again to what you really want, and it works. Beats me, but the work-around works reliably (as does plugging in an external monitor).

jahnf commented 4 years ago

Thanks for the info, And that behavior is it only in conjunction with Wayland + wine/PowerPoint or a general issue with Projecteur + Wayland on your setup?

fmuelle4711 commented 4 years ago

I can only confirm it w/ Wayland, wine+Powerpnt. It does not look like a projecteur issue. But it's not worth investigating since I'm using a legacy wine version (due to MS license issues), so I'm just reporting this in case someone else happens to look for a work-around. No need to change projecteur, IMHO.