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

Window position issue on the secondary monitor #452

Closed
tsanie opened this issue Jan 7, 2019 · 16 comments
Closed

Window position issue on the secondary monitor #452

tsanie opened this issue Jan 7, 2019 · 16 comments

Comments

@tsanie
Copy link

tsanie commented Jan 7, 2019

Describe the bug
When I switch the files on the secondary monitor, the QuickLook window doesn't keep a well position.
There is no problem in the primary monitor.
And it is different with #260

To Reproduce
Steps to reproduce the behavior:

  1. Select a file in the secondary monitor
  2. Press the Space button
  3. Then press the button to switch to another file
  4. Now the QuickLook window move to the center of the two monitors (and be separated)

Expected behavior
The QuickLook window stays in the current monitor.

Desktop (please complete the following information):

  • OS Version: Windows 10 1809 (OS Build 17763.195)
  • QuickLook Version: 3.6.4 from the released .msi

Screenshots and Exception Log
b1
b2

@xupefei
Copy link
Member

xupefei commented Jan 7, 2019

Can you try this version: https://ci.appveyor.com/project/xupefei/quicklook/builds/19487008/artifacts
Is there any difference?

@tsanie
Copy link
Author

tsanie commented Jan 8, 2019

I can't reproduce the problem in my work computer, which also have two monitor. 😭 The two versions (3.6.2-27-g6768f44 and 3.6.4) both looks well.

I'll try this version after work later.

@tsanie
Copy link
Author

tsanie commented Jan 8, 2019

@xupefei Yes, the 3.6.2 version would keep the right position in the secondary monitor.
But another problem appeared, the window text in the secondary monitor looks blur. (The zoom scale in the primary monitor is 125%, and the secondary monitor is 100%.)

@xupefei
Copy link
Member

xupefei commented Jan 8, 2019

There are some known issues with DPI scaling now, see #420.
In short, we have to choose either (i) correct window position and blurry UI on one of the screens or (ii) incorrect window position and clear UI on all screens.
Blame Microsoft for this.

I prefer to choose (i) which means to revert the DPI-related changes for now. Could you give any comment, @Verrickt?

@Verrickt
Copy link
Contributor

Verrickt commented Jan 8, 2019

I'd prefer (i) so let's revert the changes and blame Microsoft

@tsanie
Copy link
Author

tsanie commented Jan 8, 2019

OK, I see.
And is there a solution like: When the QuickLook window be opened in the secondary screen, it shows clearly in the secondary screen. And the primary screen is the same? (if don't consider about move the window to the other screen)

@xupefei
Copy link
Member

xupefei commented Jan 8, 2019

After reverting changes, the window will be clear on your primary display, i.e., the one showing all desktop icons. When the window shows on your secondary screen, it (always) becomes blurry -- unless two screens have the same DPI scaling factor.

@xupefei
Copy link
Member

xupefei commented Dec 1, 2019

I noticed that NET framework 4.8 finally adds mixed DPI support: https://docs.microsoft.com/en-us/dotnet/framework/whats-new/index#wpf48

Any volunteer with a multiple-monitor setup?

@renecum
Copy link

renecum commented Apr 12, 2020

I have a multiple-monitor setup, I was unable to reproduce the problem.

@CodyPredy
Copy link

Same problem on a multi desktop setup.
Primary - 4K, Secondary - 1080p.
Secondary is shifted bottom aligned with the primary. On initial preview it's completely centered. Shifting to other files using bottom or top arrow keys shifts the position of the preview pane.

@xupefei
Copy link
Member

xupefei commented May 29, 2020

Yes, the problem happens when monitors are in different DPI.

@xupefei
Copy link
Member

xupefei commented Oct 11, 2020

This is issue should be fixed in https://ci.appveyor.com/project/xupefei/quicklook/builds/35688242/artifacts. Could you try?

@tsanie
Copy link
Author

tsanie commented Oct 12, 2020

This is issue should be fixed in https://ci.appveyor.com/project/xupefei/quicklook/builds/35688242/artifacts. Could you try?

It seems correct through the Team viewer. I will try it on the local side in the evening, now here is only macOS.

@tsanie
Copy link
Author

tsanie commented Oct 12, 2020

@xupefei There is no position issues any more, but the quick look is too large in the main monitor now. (correct in the secondary monitor)

1 display: 2560x1440, dpi 125%
2 display: 1080x1920, dpi 100%

screen

@xupefei
Copy link
Member

xupefei commented Oct 12, 2020

The second issue should have been fixed in https://ci.appveyor.com/project/xupefei/quicklook/builds/35688332/artifacts.

Nice pic BTW :)

@tsanie
Copy link
Author

tsanie commented Oct 12, 2020

The second issue should have been fixed in https://ci.appveyor.com/project/xupefei/quicklook/builds/35688332/artifacts.

Nice pic BTW :)

Resolved, perfect 👍

@tsanie tsanie closed this as completed Oct 12, 2020
Jethro-Alter added a commit to Jethro-Alter/QuickLook that referenced this issue Dec 21, 2020
* Update Translations.config

* Update Translations.config

* Update Translations.config

* Create Privacy.md

* Rename Privacy.md to PRIVACY.md

* Update PRIVACY.md

* Update PRIVACY.md

* Fix QL-Win#579: search box changed in Windows 10 1909

* Fix QL-Win#579: also deal with non-English UIs

* don't bring existing window to the front

* Revert "Fix QL-Win#644: still use focusable window on Windows 7 and 8"

This reverts commit 452574e.

Revert "Fix QL-Win#644 step 1: correctly bring window back to top when clicked"

This reverts commit af608dc.

* Fix QL-Win#401: use the native image provider to render static GIFs

* Update Translations.config

Hungarian language added.

* Fix QL-Win#669: convert image to sRGB only when the original ColorSpace is RGB, sRGB, or scRGB

* Upgrade Magick.NET packages

* Fix QL-Win#669 again: stupid syntax mistake :(

* Bulk update NuGet packages

* Update Translations.config

Typo correction on line 61 and 69. Fixing slight translation mistakes and some words also replaced with more commonly used words.

* Support File Path longer than 260 (tweak needed: https://www.tenforums.com/tutorials/51704-enable-disable-win32-long-paths-windows-10-a.html)

* Add EXR to ImageViewer

* Add MXF to VideoViewer

* Decrease update checking frequency to monthly

* Fix QL-Win#715: add 1s timeout before any previewing request

* Fix QL-Win#711: adjust UI before loading any PDF page

* Fix QL-Win#729: add a config flag to hide the tray icon

* Fix QL-Win#731: use app folder for saving data in the portable mode

* Fix QL-Win#733: detect Markdown encoding

* Fix QL-Win#734: add AVIF format

* Update .appveyor.yml

* added german translation for newly added string

* fix a typo

* Fix QL-Win#744: Components are not correctly disposed upon exit

* Fix QL-Win#477: Add JFIF files

* Update bug_report.md

* typo

* Fix QL-Win#420, QL-Win#452, QL-Win#757: windows positioning for monitors with different DPIs

* Update Common to fix plugin resize

* Fix QL-Win#759: fix thumbnail orientation for some camera models

* Fix QL-Win#760, support CR3

* removed dup of ".asf" and added ".mka" for testing

Co-authored-by: Piteriuz <piteriuz@outlook.com>
Co-authored-by: Pengfei Xu <xupaddy@gmail.com>
Co-authored-by: Bobcruise <bobcruise07@gmail.com>
Co-authored-by: davinhanif <39960696+davinhanif@users.noreply.github.com>
Co-authored-by: Alexander Raab <alexander.raab1@gmx.de>
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

5 participants