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

Monitor-spanning windows: command palette has the wrong size when rescale at runtime is active #184

Open
fedejeanne opened this issue Jan 15, 2025 · 5 comments
Labels
Bug A Derivation of Expected Behavior HiDPI A HiDPI-Related Issue or Feature SWT Issue for SWT

Comments

@fedejeanne
Copy link

Finding from test session

Setup

  • Primary monitor on the left, 100% zoom
  • Secondary monitor on the right, 175% zoom
  • -Dswt.autoScale.updateOnRuntime=true

How to reproduce

IMPORTANT: it does NOT suffice to activate rescaling at runtime via the preference. I had to activate it via start parameter in order to reproduce this error.

  • Window stretching over both monitors, 51% on the left (100%) monitor
  • Open "Command palette" with Ctrl+3 --> The palette opens on the right monitor and it is full-screen

Screenshot

@fedejeanne fedejeanne added this to HiDPI Jan 15, 2025
@fedejeanne fedejeanne converted this from a draft issue Jan 15, 2025
@fedejeanne fedejeanne added SWT Issue for SWT Bug A Derivation of Expected Behavior HiDPI A HiDPI-Related Issue or Feature labels Jan 15, 2025
@HeikoKlare
Copy link
Contributor

Might be related to:

@fedejeanne
Copy link
Author

@HeikoKlare since this bug is only reproducible by using the VM parameter and eclipse-platform/eclipse.platform.ui#2689 states that the preference should be preferred then I'd say this bug has low priority. WDYT?

@HeikoKlare
Copy link
Contributor

I was not able to achieve the exact same appearance, but when I started with the scenario in the original post, moved the workbench window to the secondary 175% monitor and repeatedly opened the command palette, it always opened on the primary monitor and became smaller every time I opened it:
Image

After eclipse-platform/eclipse.platform.swt#1711, I am not able to produce any issues with the command palette anymore. It always opens in the proper size on the monitor the workbench window is currently placed on.

Can you please check again @fedejeanne and see whether you can still reproduce the issue and otherwise close it?

@fedejeanne
Copy link
Author

Reproducible in yesterday's I-BUILD I20250120-1800

Image

IIRC the trick was to go as close to the monitor on the right (175%) without "crossing over" i.e. the Workbench window should stay in 100% zoom.

@HeikoKlare
Copy link
Contributor

Okay, so if I understand correctly, this is a very corner case when the windows spans multiple monitors, right?
Then I propose to set priority to "unconsidered" and prefix the issue title with "Monitor-spanning windows" like the other tickets for issues that only occur when a windows spans multiple monitors, like:

@HeikoKlare HeikoKlare changed the title Command palette has the wrong size when rescale at runtime is active Monitor-spanning windows: command palette has the wrong size when rescale at runtime is active Jan 23, 2025
@HeikoKlare HeikoKlare removed this from the 4.35 M2 milestone Jan 23, 2025
@HeikoKlare HeikoKlare removed the status in HiDPI Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug A Derivation of Expected Behavior HiDPI A HiDPI-Related Issue or Feature SWT Issue for SWT
Projects
Status: No status
Development

No branches or pull requests

2 participants