[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_final-
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_final-2282-gf6a0b38 |
Date: |
Thu, 2 Jun 2016 19:20:02 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnash".
The branch, master has been updated
via f6a0b382f752e919a6c53f5c619e1eaf2189be74 (commit)
from 5ad81af90b1b2ab6525eb0c49ba021c6b0b1f621 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit//commit/?id=f6a0b382f752e919a6c53f5c619e1eaf2189be74
commit f6a0b382f752e919a6c53f5c619e1eaf2189be74
Author: Dag Hovland <address@hidden>
Date: Thu Jun 2 21:19:29 2016 +0200
Prevent right click from signaling a mousedown in Qt-based gui
Fixes bug #48066
diff --git a/gui/qt/Qt4Glue.cpp b/gui/qt/Qt4Glue.cpp
index 83f05eb..c3245d6 100644
--- a/gui/qt/Qt4Glue.cpp
+++ b/gui/qt/Qt4Glue.cpp
@@ -75,9 +75,10 @@ DrawingWidget::contextMenuEvent(QContextMenuEvent* event)
}
void
-DrawingWidget::mousePressEvent(QMouseEvent* /* event */)
+DrawingWidget::mousePressEvent(QMouseEvent* event)
{
- _gui.notifyMouseClick(true);
+ if(Qt::LeftButton & event->button())
+ _gui.notifyMouseClick(true);
}
void
diff --git a/gui/qt/kde.cpp b/gui/qt/kde.cpp
index 1a3f544..0a31f7c 100644
--- a/gui/qt/kde.cpp
+++ b/gui/qt/kde.cpp
@@ -451,9 +451,10 @@ qwidget::contextMenuEvent(QContextMenuEvent*)
#endif
void
-qwidget::mousePressEvent(QMouseEvent* /* event */)
+qwidget::mousePressEvent(QMouseEvent* event)
{
- _godfather->notifyMouseClick(true);
+ if(Qt::LeftButton & event->button())
+ _godfather->notifyMouseClick(true);
}
void
-----------------------------------------------------------------------
Summary of changes:
gui/qt/Qt4Glue.cpp | 5 +++--
gui/qt/kde.cpp | 5 +++--
2 files changed, 6 insertions(+), 4 deletions(-)
hooks/post-receive
--
Gnash
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_final-2282-gf6a0b38,
Sandro Santilli <=