Skip to contentSkip to conversation

qtwayland: remove old unused backported patches

PATCH New Denys Dmytriyenko 1 participant 1 message Apr 22, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qtwayland: remove old unused backported patches

---
 .../qt5/qtwayland/0001-Fix-touch-with-Weston.patch |  74 -------------
 ...-drag-a-window-by-its-titlebar-using-the-.patch | 118 ---------------------
 .../0001-Wayland-correct-touch-location.patch      |  31 ------
 3 files changed, 223 deletions(-)
 delete mode 100644 meta-arago-distro/recipes-qt/qt5/qtwayland/0001-Fix-touch-with-Weston.patch
 delete mode 100644 meta-arago-distro/recipes-qt/qt5/qtwayland/0001-Wayland-can-drag-a-window-by-its-titlebar-using-the-.patch
 delete mode 100644 meta-arago-distro/recipes-qt/qt5/qtwayland/0001-Wayland-correct-touch-location.patch
meta-arago-distro/recipes-qt/qt5/qtwayland/0001-Fix-touch-with-Weston.patch deleted +0 -74
deleted file mode 100644
index df564bb..0000000
@@ -1,74 +0,0 @@
-From 797fd02ed6bb26f30899e117d6ab8119b7a24f95 Mon Sep 17 00:00:00 2001
-From: Laszlo Agocs <[email protected]>
-Date: Fri, 29 Aug 2014 20:43:20 +0200
-Subject: [PATCH] Fix touch with Weston
-
-Work around the missing touch_frame after the last touch_up.
-
-Task-number: QTBUG-36602
-Change-Id: Iccb03bdc8b430c7cefc097c3c84e50be676c7fe7
----
- src/client/qwaylandinputdevice.cpp |   26 +++++++++++++++++++-------
- 1 file changed, 19 insertions(+), 7 deletions(-)
-
-diff --git a/src/client/qwaylandinputdevice.cpp b/src/client/qwaylandinputdevice.cpp
-index 6c13201..a520c79 100644
---- a/src/client/qwaylandinputdevice.cpp
-+++ b/src/client/qwaylandinputdevice.cpp
-@@ -220,6 +220,8 @@ public:
-     void touch_frame() Q_DECL_OVERRIDE;
-     void touch_cancel() Q_DECL_OVERRIDE;
- 
-+    bool allTouchPointsReleased();
-+
-     QWaylandInputDevice *mParent;
-     QWaylandWindow *mFocus;
-     QList<QWindowSystemInterface::TouchPoint> mTouchPoints;
-@@ -863,6 +865,13 @@ void QWaylandInputDevice::Touch::touch_up(uint32_t serial, uint32_t time, int32_
-     Q_UNUSED(time);
-     mFocus = 0;
-     mParent->handleTouchPoint(id, 0, 0, Qt::TouchPointReleased);
-+
-+    // As of Weston 1.5.90 there is no touch_frame after the last touch_up
-+    // (i.e. when the last finger is released). To accomodate for this, issue a
-+    // touch_frame. This cannot hurt since it is safe to call the touch_frame
-+    // handler multiple times when there are no points left.
-+    if (allTouchPointsReleased())
-+        touch_frame();
- }
- 
- void QWaylandInputDevice::Touch::touch_motion(uint32_t time, int32_t id, wl_fixed_t x, wl_fixed_t y)
-@@ -921,6 +930,15 @@ void QWaylandInputDevice::handleTouchPoint(int id, double x, double y, Qt::Touch
-     mTouch->mTouchPoints.append(tp);
- }
- 
-+bool QWaylandInputDevice::Touch::allTouchPointsReleased()
-+{
-+    for (int i = 0; i < mTouchPoints.count(); ++i)
-+        if (mTouchPoints.at(i).state != Qt::TouchPointReleased)
-+            return false;
-+
-+    return true;
-+}
-+
- void QWaylandInputDevice::Touch::touch_frame()
- {
-     // Copy all points, that are in the previous but not in the current list, as stationary.
-@@ -950,13 +968,7 @@ void QWaylandInputDevice::Touch::touch_frame()
- 
-     QWindowSystemInterface::handleTouchEvent(window, mParent->mTouchDevice, mTouchPoints);
- 
--    bool allReleased = true;
--    for (int i = 0; i < mTouchPoints.count(); ++i)
--        if (mTouchPoints.at(i).state != Qt::TouchPointReleased) {
--            allReleased = false;
--            break;
--        }
--
-+    const bool allReleased = allTouchPointsReleased();
-     mPrevTouchPoints = mTouchPoints;
-     mTouchPoints.clear();
- 
--- 
-1.7.9.5
-
meta-arago-distro/recipes-qt/qt5/qtwayland/0001-Wayland-can-drag-a-window-by-its-titlebar-using-the-.patch deleted +0 -118

118 lines not on this page · raw message

meta-arago-distro/recipes-qt/qt5/qtwayland/0001-Wayland-correct-touch-location.patch deleted +0 -31
deleted file mode 100644
index caa6dff..0000000
@@ -1,31 +0,0 @@
-From ae54be549e6ebeef829d5c1089d5307d00d0b791 Mon Sep 17 00:00:00 2001
-From: Shawn Rutledge <[email protected]>
-Date: Mon, 1 Sep 2014 15:30:42 +0200
-Subject: [PATCH] Wayland: correct touch location
-
-The window margins were offsetting the touch point in the wrong
-direction.
-
-Task-number: QTBUG-36602
-Change-Id: Id8b31d2de4051f36d3ff4e088bbc9bd7cc84ca13
-Reviewed-by: Laszlo Agocs <[email protected]>
----
- src/client/qwaylandinputdevice.cpp |    2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/src/client/qwaylandinputdevice.cpp b/src/client/qwaylandinputdevice.cpp
-index 4a100f7..014303f 100644
---- a/src/client/qwaylandinputdevice.cpp
-+++ b/src/client/qwaylandinputdevice.cpp
-@@ -921,7 +921,7 @@ void QWaylandInputDevice::handleTouchPoint(int id, double x, double y, Qt::Touch
- 
-         tp.area = QRectF(0, 0, 8, 8);
-         QMargins margins = win->frameMargins();
--        tp.area.moveCenter(win->window()->mapToGlobal(QPoint(x+margins.left(), y+margins.top())));
-+        tp.area.moveCenter(win->window()->mapToGlobal(QPoint(x - margins.left(), y - margins.top())));
-     }
- 
-     tp.state = state;
--- 
-1.7.9.5
-
Signature · 1 line
2.7.4