https://bugs.kde.org/show_bug.cgi?id=460446

Vlad Zahorodnii <vlad.zahorod...@kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|https://invent.kde.org/plas |https://invent.kde.org/plas
                   |ma/kwin/commit/28899df48587 |ma/kwin/commit/eb6e7dedad89
                   |d3ea528228043c9eba53724889a |269207b2468e9ed93a4fd991bd5
                   |4                           |4

--- Comment #9 from Vlad Zahorodnii <vlad.zahorod...@kde.org> ---
Git commit eb6e7dedad89269207b2468e9ed93a4fd991bd54 by Vlad Zahorodnii.
Committed on 17/10/2022 at 09:35.
Pushed by vladz into branch 'Plasma/5.26'.

Make Workspace::outputAt() more robust to extreme values

Since QPointF can have values that exceed INT_MAX, "distance <
minDistance" may not be triggered for the first output.

In order to make Workspace::outputAt() more robust to such extreme
cases, this patch changes the type of minDistance from int to qreal to
avoid truncation and adds an explicit check to initialize bestOutput
when we see the first workspace output.

It would be also great to add size hints sanitization code in kwin, but
it can be done later.

---

Should close:

* https://errors-eval.kde.org/organizations/kde/issues/321
* https://errors-eval.kde.org/organizations/kde/issues/341


(cherry picked from commit 28899df48587d3ea528228043c9eba53724889a4)

M  +3    -2    src/workspace.cpp

https://invent.kde.org/plasma/kwin/commit/eb6e7dedad89269207b2468e9ed93a4fd991bd54

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to