D20707: Fix corner screen glows that suddenly pop up
Vlad Zagorodniy <[email protected]>
| Newsgroups | gmane.comp.kde.devel.kwin |
|---|---|
| Message-ID | <[email protected]> |
zzag created this revision. zzag added a reviewer: KWin. Herald added a project: KWin. Herald added a subscriber: kwin. zzag requested review of this revision. REVISION SUMMARY Depending on how pointer approaches a screen corner, the maximum distance between two may be smaller than 2 * edgeDistance. This can happen for example when approaching the corner along of any two adjacent screen edges. As a result, the calculated factor can be anywhere between 0 and 0.5 when pointer enters approachGeometry(). This change adjusts calculation of the factor, so it always ranges from 0 to 1 no matter how the pointer approaches corners. REPOSITORY R108 KWin BRANCH correct-screen-edge-factor REVISION DETAIL https://phabricator.kde.org/D20707 AFFECTED FILES screenedge.cpp To: zzag, #kwin Cc: kwin, jraleigh, GB_2, mkulinski, ragreen, jackyalcine, Pitel, iodelay, bwowk, ZrenBot, ngraham, alexeymin, lesliezhai, ali-mohamed, hardening, jensreuterberg, abetts, sebas, apol, mart