[Lacros] Fix tooltip window crash on mixed DPI
WaylandAuxiliaryWindow is not provided with a correct parent and buffer_scale upon creation. That causes the DCHECK at https://source.chromium.org/chromium/chromium/src/+/master:ui/ozone/platform/wayland/common/wayland_util.cc;l=271 being triggered. This CL updates buffer_scale before creating the tooltip subsurface and makes sure that WaylandAuxiliaryWindow doesn't receive scale updates when a display changes (just like we already do with menus). BUG=1152569 Change-Id: I0a0357fe1151915d5ed9142c395b4f76099abe3a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2560588 Commit-Queue: Zakhar Voit <zvoit@igalia.com> Reviewed-by:Maksim Sisov (GMT+2) <msisov@igalia.com> Cr-Commit-Position: refs/heads/master@{#835376}
Showing
Please register or sign in to comment