Open kbumsik opened 6 years ago
This is because of HiDPI screen.
Now, I use Qt.application.screens[0]
object to get resolutions and positions of each monitor. Also using Qt.application.screens[0].devicePixelRatio
solves problem with QCursor's absolute position scaling problem.
Fixed in 0d01fa0.
I @kbumsik, I'm also facing this problem using a DELL 7460 running Fedora 29. As soon as the Virtual Screen is created, the app's UI goes to the Virtual Screen. Any tip?
@cristianopimentel Hi, it sounds like that it's caused by my poor implementation for detecting the main screen. Could you tell me what's your position of the virtual screen relative to the main screen (e.g. left, right, top, below...)?
If you have time, could you also try creating the virtual screen in various positions and you still have the same problem?
@cristianopimentel As a note, VirtScreen currently decides the position of the UI window using the position of the mouse at the moment you click the system tray icon. You might have the problem if you click the system tray icon in the virtual screen, not in the main screen.
Hi @kbumsik, here are my findings as you requested:
VirtualDisplay on RIGHT of main display:
VirtualDisplay on BOTTOM of main display:
VirtualDisplay on LEFT of main display:
VirtualDisplay on LEFT of main display:
Worth mention I'm using GNOME 3.30.2 with custom Topicons extension. The menu bar does not extent to the virtualdisplay so the tray icons does not appear in it.
Let me know if you need more test from my side.
Thanks.
App window appears in the virtual screen on Surface Pro. It should appear on the primary screen.