summaryrefslogtreecommitdiffstats
path: root/examples/widgets/dialogs/configdialog
diff options
context:
space:
mode:
authorSamuel Rødal <samuel.rodal@digia.com>2012-12-12 15:47:32 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-12-14 08:56:02 +0100
commit1a653225f6c73d7ca32aa6cdcde45ba9462a7b72 (patch)
tree49c8bd5583c3ad0395897ea1721170b4384e4a54 /examples/widgets/dialogs/configdialog
parentd466a171d46a6b6b171fd89589d5ed1e2a6f2bd9 (diff)
Fixed incorrect handling of extra mouse buttons in XCB platform plugin.
translateMouseButtons() was only able to correctly handle the left, right, and mid mouse buttons. Thus, if any buttons outside of those were pressed, the motion notify event would basically unset the mouse button mask, leading to a release event being sent instead. Later on, when the actual release event arrives, that button gets xor'ed into the empty button mask generating another press, and later another motion event will generate a release. In the end that means two press-release sequences are sent for any extra mouse buttons. Instead of getting the mask of the buttons currently being pressed from the event, we need to keep track of the mask ourselves. Task-number: QTBUG-28561 Change-Id: Iaa67e784a13d792deef8fc29dbd5456a5471a861 Reviewed-by: Oliver Wolff <oliver.wolff@digia.com> Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: Shawn Rutledge <shawn.rutledge@digia.com> Reviewed-by: Rick Stockton <rickstockton@reno-computerhelp.com> Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'examples/widgets/dialogs/configdialog')
0 files changed, 0 insertions, 0 deletions