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

Problem with multiple monitors + scale factors #211

Open
tsujan opened this issue Jun 20, 2020 · 3 comments
Open

Problem with multiple monitors + scale factors #211

tsujan opened this issue Jun 20, 2020 · 3 comments

Comments

@tsujan
Copy link
Member

tsujan commented Jun 20, 2020

Steps to Reproduce (for bugs)
  1. Set the global Qt scale factor to 1.5 in LXQt Session Settings.
  2. Set up a double screen.
  3. Run screengrab.

Then its screenshots are ridiculous.

Screenshots are OK with either a double screen or a scale factor.

Possible Solution

I found the problem while fixing another problem. Will fix this one too when I feel motivated to do boring jobs.

System Information

Latest LXQt

@tsujan
Copy link
Member Author

tsujan commented Jun 20, 2020

It's very likely that this is about a Qt bug. Also see lxqt/pcmanfm-qt#1145

@Artemis3v
Copy link

Artemis3v commented Jun 23, 2020

The way screengrab does area capture is wrong. First it captures the whole thing (all screens), and then it tries to display it in your main monitor to select from (which obviously doesn't fit). Rather than just directly select from actual screen content like gimp and other screengrabbers (ie, from XFCE) do. Even if there is a qt bug, it is a poor design choice.

@tsujan
Copy link
Member Author

tsujan commented Jun 23, 2020

Screengrab avoids dealing with X11 directly and uses QSreen::grabWindow. Generally, we avoid X11 codes everywhere and use the available Qt or tier-1 KDE methods instead.

As far as I tested with pcmanfm-qt (suffering from a similar issue with multi-screen + scale factors), the screen coordinates are reported correctly. Why the first screen is painted incorrectly, I don't know yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants