diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-05-12 23:49:59 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-05-12 23:49:59 +0100 |
commit | 241157fae4eae88cefc48b4644bad8b9e53583dc (patch) | |
tree | 21c5bcbe695778c057090452592e3861a780352b /kde-plasma/kwin/files/kwin-5.27.5-revert-7c91c4ba.patch | |
parent | 229d5601ae2eca4f143dabdfb36406376cf88c03 (diff) |
gentoo auto-resync : 12:05:2023 - 23:49:59
Diffstat (limited to 'kde-plasma/kwin/files/kwin-5.27.5-revert-7c91c4ba.patch')
-rw-r--r-- | kde-plasma/kwin/files/kwin-5.27.5-revert-7c91c4ba.patch | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/kde-plasma/kwin/files/kwin-5.27.5-revert-7c91c4ba.patch b/kde-plasma/kwin/files/kwin-5.27.5-revert-7c91c4ba.patch new file mode 100644 index 000000000000..f7c2047818b3 --- /dev/null +++ b/kde-plasma/kwin/files/kwin-5.27.5-revert-7c91c4ba.patch @@ -0,0 +1,49 @@ +From 3d62e7548955e2ddf298c61a55fcd26007ea27bb Mon Sep 17 00:00:00 2001 +From: Vlad Zahorodnii <vlad.zahorodnii@kde.org> +Date: Thu, 11 May 2023 22:56:32 +0300 +Subject: [PATCH] Revert "wayland: Avoid pointer warp if constraint region is + invalid" + +This reverts commit 7c91c4bad9ee709eebfdf9d5b3997fa00ca7cd13. + +It created regressions in some video games. After a closer look at the +pointer constraint region handling, there are some issues, but it might +be safer to fix them in master. + +In meanwhile, let's revert 7c91c4bad because it breaks more things than +it fixes. + +CCBUG: 457021 +BUG: 469555 + + +(cherry picked from commit 07da1796b8388b00275d8281fac476bde71cd02b) +--- + src/pointer_input.cpp | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/src/pointer_input.cpp b/src/pointer_input.cpp +index 2b582649a61..d47b5bc47d3 100644 +--- a/src/pointer_input.cpp ++++ b/src/pointer_input.cpp +@@ -669,7 +669,7 @@ void PointerInputRedirection::updatePointerConstraints() + lock->setLocked(false); + m_locked = false; + disconnectLockedPointerAboutToBeUnboundConnection(); +- if (!(hint.x() < 0 || hint.y() < 0 || !lock->region().contains(hint.toPoint())) && focus()) { ++ if (!(hint.x() < 0 || hint.y() < 0) && focus()) { + processMotionAbsolute(focus()->mapFromLocal(hint), waylandServer()->seat()->timestamp()); + } + } +@@ -684,7 +684,7 @@ void PointerInputRedirection::updatePointerConstraints() + // In this case the cached cursor position hint must be fetched before the resource goes away + m_lockedPointerAboutToBeUnboundConnection = connect(lock, &KWaylandServer::LockedPointerV1Interface::aboutToBeDestroyed, this, [this, lock]() { + const auto hint = lock->cursorPositionHint(); +- if (hint.x() < 0 || hint.y() < 0 || !lock->region().contains(hint.toPoint()) || !focus()) { ++ if (hint.x() < 0 || hint.y() < 0 || !focus()) { + return; + } + auto globalHint = focus()->mapFromLocal(hint); +-- +GitLab + |