commit e583e4567d1f2bf7c5f246efc6c77f08ce54455c Author: Alan Mizrahi <alan+crux@mizrahi.com.ve> Date: Tue Oct 1 16:38:42 2013 +0900 kde-runtime: Fixes bug 324470 diff --git a/kde-runtime/.md5sum b/kde-runtime/.md5sum index 0e3d32f..ef01b8f 100644 --- a/kde-runtime/.md5sum +++ b/kde-runtime/.md5sum @@ -1 +1,2 @@ b195a10b9ffda33aaef5b34092ddc23a kde-runtime-4.11.1.tar.xz +5c1dde8abc04c153ffb66d91fd217741 mouse-events.patch diff --git a/kde-runtime/Pkgfile b/kde-runtime/Pkgfile index 478c436..3d5e5be 100644 --- a/kde-runtime/Pkgfile +++ b/kde-runtime/Pkgfile @@ -6,8 +6,8 @@ name=kde-runtime version=4.11.1 -release=1 -source=(http://download.kde.org/stable/$version/src/$name-$version.tar.xz) +release=2 +source=(http://download.kde.org/stable/$version/src/$name-$version.tar.xz mouse-events.patch) build() { # To prevent compilation of a particular component, set DO_NOT_COMPILE @@ -18,6 +18,11 @@ build() { [ -n "$DO_NOT_COMPILE" ] && DO_NOT_COMPILE="`echo $DO_NOT_COMPILE | awk -F\ '{for(i=1;i<=NF;i++)printf("-DBUILD_%s=OFF%s",$i,i<NF?" ":"")}'`" + pushd $name-$version + # Fixes bug 324470: https://bugs.kde.org/show_bug.cgi?id=324470 + patch -p1 -i $SRC/mouse-events.patch + popd + mkdir build; cd build cmake ../$name-$version \ -DCMAKE_BUILD_TYPE=RELEASE \ diff --git a/kde-runtime/mouse-events.patch b/kde-runtime/mouse-events.patch new file mode 100644 index 0000000..4269df8 --- /dev/null +++ b/kde-runtime/mouse-events.patch @@ -0,0 +1,49 @@ +commit be1a5d484c70f4f6a383150810afbfbb367db2ac +Author: Eike Hein <hein@kde.org> +Date: Tue Sep 3 20:29:23 2013 +0200 + + Discard the recorded events in the item-local handlers. + + Solves problems with identical events being ignored due to + QGraphicsView's reuse of QGraphicsSceneMouseEvent instances. + + CCMAIL:rdieter@fedoraproject.org + BUG:324470 + BUG:324471 + +diff --git a/plasma/declarativeimports/qtextracomponents/mouseeventlistener.cpp b/plasma/declarativeimports/qtextracomponents/mouseeventlistener.cpp +index b534845..36530e0 100644 +--- a/plasma/declarativeimports/qtextracomponents/mouseeventlistener.cpp ++++ b/plasma/declarativeimports/qtextracomponents/mouseeventlistener.cpp +@@ -90,6 +90,7 @@ bool MouseEventListener::containsMouse() const + void MouseEventListener::mousePressEvent(QGraphicsSceneMouseEvent *me) + { + if (m_lastEvent == me) { ++ m_lastEvent = 0; + return; + } + +@@ -112,6 +113,7 @@ void MouseEventListener::mousePressEvent(QGraphicsSceneMouseEvent *me) + void MouseEventListener::mouseMoveEvent(QGraphicsSceneMouseEvent *me) + { + if (m_lastEvent == me) { ++ m_lastEvent = 0; + return; + } + +@@ -122,6 +124,7 @@ void MouseEventListener::mouseMoveEvent(QGraphicsSceneMouseEvent *me) + void MouseEventListener::mouseReleaseEvent(QGraphicsSceneMouseEvent *me) + { + if (m_lastEvent == me) { ++ m_lastEvent = 0; + return; + } + +@@ -138,6 +141,7 @@ void MouseEventListener::mouseReleaseEvent(QGraphicsSceneMouseEvent *me) + void MouseEventListener::wheelEvent(QGraphicsSceneWheelEvent *we) + { + if (m_lastEvent == we) { ++ m_lastEvent = 0; + return; + } +