> -----Original Message----- > From: Dmytriyenko, Denys > Sent: Thursday, September 04, 2014 12:46 PM > To: Cooper Jr., Franklin > Cc: [email protected] > Subject: Re: [meta-arago] [PATCH 1/3] qtwayland: Fix windows margin issue > when using touch events. > > Franklin, > > Thanks! Have you tested these patches? Are there any other > touch/qt5/weston issues remaining? What about that Weston restart one? [Franklin] Yep tested for the initial issue which was touch not working with Qt 5.
What is still broken is that you can interact with the window's decoration. So you can use the title bar to move a window around, you can't interact with the menu bar and you can't minimize, maximize, and close a window via the icons on the top right. Some might consider this a new bug but I plan on updating the current Qt bug report. This is different than the restart Weston via init script issue and I haven't looked into that one. > > > On Thu, Sep 04, 2014 at 12:35:38PM -0500, Franklin S. Cooper Jr wrote: > > From: "Franklin S. Cooper Jr" <[email protected]> > > > > * This is another QtWayland bug that was discussed in the Qt bug report: > > https://bugreports.qt-project.org/browse/QTBUG-36602 > > * Patch link: > > https://codereview.qt-project.org/#/c/93664/ > > > > Signed-off-by: Franklin S. Cooper Jr <[email protected]> > > --- > > .../0001-Wayland-correct-touch-location.patch | 31 > ++++++++++++++++++++ > > .../recipes-qt/qt5/qtwayland_git.bbappend | 5 ++-- > > 2 files changed, 34 insertions(+), 2 deletions(-) > > create mode 100644 meta-arago-extras/recipes-qt/qt5/qtwayland/0001- > Wayland-correct-touch-location.patch > > > > diff --git a/meta-arago-extras/recipes-qt/qt5/qtwayland/0001-Wayland- > correct-touch-location.patch b/meta-arago-extras/recipes- > qt/qt5/qtwayland/0001-Wayland-correct-touch-location.patch > > new file mode 100644 > > index 0000000..caa6dff > > --- /dev/null > > +++ b/meta-arago-extras/recipes-qt/qt5/qtwayland/0001-Wayland- > correct-touch-location.patch > > @@ -0,0 +1,31 @@ > > +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 > > + > > diff --git a/meta-arago-extras/recipes-qt/qt5/qtwayland_git.bbappend > b/meta-arago-extras/recipes-qt/qt5/qtwayland_git.bbappend > > index dca1710..336484b 100644 > > --- a/meta-arago-extras/recipes-qt/qt5/qtwayland_git.bbappend > > +++ b/meta-arago-extras/recipes-qt/qt5/qtwayland_git.bbappend > > @@ -1,8 +1,9 @@ > > -PR_append = "-arago2" > > +PR_append = "-arago3" > > > > FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" > > > > -SRC_URI += "file://0001-Fix-touch-with-Weston.patch" > > +SRC_URI += "file://0001-Fix-touch-with-Weston.patch \ > > + file://0001-Wayland-correct-touch-location.patch" > > > > > > QT_MODULE_BRANCH = "5.4" > > -- > > 1.7.9.5 > > > > _______________________________________________ > > meta-arago mailing list > > [email protected] > > http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago _______________________________________________ meta-arago mailing list [email protected] http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
