Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kbumsik opened this issue Jun 5, 2018 · 6 comments
Open

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

kbumsik opened this issue Jun 5, 2018 · 6 comments
Assignees
Projects

Comments

@kbumsik
Copy link
Owner

kbumsik commented Jun 5, 2018

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

@kbumsik kbumsik mentioned this issue Jun 5, 2018
30 tasks
@kbumsik kbumsik self-assigned this Jun 5, 2018
@kbumsik
Copy link
Owner Author

kbumsik commented Jun 5, 2018

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 kbumsik added this to To do in v0.3.0 via automation Jun 5, 2018
@kbumsik kbumsik moved this from To do to In progress in v0.3.0 Jun 5, 2018
@kbumsik
Copy link
Owner Author

kbumsik commented Jun 6, 2018

Fixed in 0d01fa0.

@kbumsik kbumsik closed this as completed Jun 6, 2018
v0.3.0 automation moved this from In progress to Done Jun 6, 2018
@cristianopimentel
Copy link

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
Copy link
Owner Author

kbumsik commented Jan 15, 2019

@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 kbumsik reopened this Jan 15, 2019
@kbumsik
Copy link
Owner Author

kbumsik commented Jan 15, 2019

@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
Copy link

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;
  1. VirtualDisplay on BOTTOM of main display:
  • App moved to VirtualDisplay once created;
  • Context menu in the trayicon works;
  1. VirtualDisplay on LEFT of main display:
  • App moved to VirtualDisplay once created;
  • Context menu does not work;
  1. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
v0.3.0
  
Done
Development

No branches or pull requests

2 participants