Commit 25466f95 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

wayland: Use true logical geometry in Display::outputsIntersecting()

Display::outputsIntersecting() computes the logical geometry using the
oriented mode size and the scale factor, but OutputInterface's scale
factor is ceil()ed up, so the resulting logical geometry can be incorrect.

BUG: 459733

(cherry picked from commit f343f3fb)
parent 8d0be8e4
Pipeline #237418 passed with stage
in 11 minutes and 44 seconds
......@@ -166,8 +166,7 @@ QVector<OutputInterface *> Display::outputsIntersecting(const QRect &rect) const
QVector<OutputInterface *> outputs;
for (auto *output : qAsConst(d->outputs)) {
const QRect outputGeometry(output->globalPosition(), output->pixelSize() / output->scale());
if (rect.intersects(outputGeometry)) {
if (output->handle()->geometry().intersects(rect)) {
outputs << output;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment