kbumsik / VirtScreen

Make your iPad/tablet/computer into a secondary monitor on Linux.
GNU General Public License v3.0
1.64k stars 111 forks source link

App window appears in the virtual screen on Surface Pro #4

Open kbumsik opened 6 years ago

kbumsik commented 6 years ago

App window appears in the virtual screen on Surface Pro. It should appear on the primary screen.

kbumsik commented 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.

kbumsik commented 6 years ago

Fixed in 0d01fa0.

cristianopimentel commented 5 years ago

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?

kbumsik commented 5 years ago

@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?

kbumsik commented 5 years ago

@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.

cristianopimentel commented 5 years ago

Hi @kbumsik, here are my findings as you requested:

  1. VirtualDisplay on RIGHT of main display:

    • App moved to VirtualDisplay once created;
    • Context menu in the trayicon works;
  2. VirtualDisplay on BOTTOM of main display:

    • App moved to VirtualDisplay once created;
    • Context menu in the trayicon works;
  3. VirtualDisplay on LEFT of main display:

    • App moved to VirtualDisplay once created;
    • Context menu does not work;
  4. VirtualDisplay on LEFT of main display:

    • App moved to VirtualDisplay once created;
    • Context menu does not work;

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.