Closed Bug 854135 Opened 11 years ago Closed 11 years ago

Context menus appear on the wrong screen in high DPIs with a multi-monitor setup

Categories

(Core :: Widget: Win32, defect)

All
Windows 8
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 851952
Tracking Status
firefox22 - ---

People

(Reporter: josh.tumath+bugzilla, Unassigned)

References

(Blocks 1 open bug)

Details

User Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:22.0) Gecko/20130323 Firefox/22.0
Build ID: 20130323031040

Steps to reproduce:

1. Connect two monitors to your computer, left and right of eachother.
2. Set the left screen to be the primary monitor.
3. Set the DPI to 150%.
4. Open Firefox and put the window on the right monitor.
5. Maximise the window.
6. Click on the Firefox button or right click anywhere on the page.


Actual results:

The context menu appears on the other monitor.
Blocks: win-hidpi
Component: Untriaged → Widget: Win32
Product: Firefox → Core
Hardware: x86_64 → All
Version: 22 Branch → Trunk
Similar to bug 840881 on GTK, maybe the bug is in cross-platform code?
Blocks: 844604
The problem here is that the code to figure out which screen should be used, and to ensure the popup is entirely within the bounds of the screen, is broken - it incorrectly mixes Windows logical-pixel and physical device-pixel coordinates.

This is actually the same problem as bug 851952, just being manifested by different components. The patch there fixes it in my testing.

Closing as a dupe, therefore. Please re-open if the problem persists once bug 851952 has landed.
Status: UNCONFIRMED → RESOLVED
Closed: 11 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.