Descriptionlinux/x11: Fix event dispatch in menus in High DPI.
In 'normal' setting (i.e. non-HighDPI), the coordinate space of a
DesktopWindowTreeHostX11 and the aura::Window it hosts is the same.
So when converting an event's location from one host's coordinate
space to another host's coordinate space, it is sufficient to use
the aura::Window API to convert the location between the hosts'
aura::Window. However, in HighDPI, the coordinate space of the host
is different from that of its aura::Window, and using aura::Window
API to do the coordinate conversion results in incorrect location.
Use a simpler method to do the conversion to avoid this.
BUG=400837
R=pkotwicz@chromium.org
Committed: https://chromium.googlesource.com/chromium/src/+/c4a76234ea701f22a870231d1b900a367693acc6
Patch Set 1 #
Total comments: 9
Patch Set 2 : . #
Messages
Total messages: 8 (2 generated)
|