on xenial help sign in
Fixes suggested by Daniel
commitce2c1b4e7e68c22c0a0bbe1cb46966770cc2dde3 authorAlbert Astals Cid <albert.astals@canonical.com> dateTue 14 Jun 2016, 16:57 (10 years ago) parent0497ef3
1 file changed+2−2
plugins/Cursor/MousePointer.cpp+2−2
plugins/Cursor/MousePointer.cpp+2−2
@@ -1,5 +1,5 @@
11/*
2− * Copyright (C) 2015 Canonical, Ltd.
2+ * Copyright (C) 2015, 2016 Canonical, Ltd.
33 *
44 * This program is free software: you can redistribute it and/or modify it under
55 * the terms of the GNU Lesser General Public License version 3, as published by
@@ -48,7 +48,7 @@ void MousePointer::handleMouseEvent(ulong timestamp, QPointF movement, Qt::Mouse
4848 Q_EMIT pushedLeftBoundary(qAbs(newX), buttons);
4949 newX = 0;
5050 } else if (newX >= parentItem()->width()) {
51− Q_EMIT pushedRightBoundary(newX - parentItem()->width(), buttons);
51+ Q_EMIT pushedRightBoundary(newX - (parentItem()->width() - 1), buttons);
5252 newX = parentItem()->width() - 1;
5353 }
5454 setX(newX);