on xenial help sign in
Fixes suggested by Daniel
ce2c1b4Albert Astals Cid
plugins/Cursor/MousePointer.cpp+2−2
@@ -1,5 +1,5 @@
1/*
1/*
2− * Copyright (C) 2015 Canonical, Ltd.
2+ * Copyright (C) 2015, 2016 Canonical, Ltd.
3 *
3 *
4 * This program is free software: you can redistribute it and/or modify it under
4 * This program is free software: you can redistribute it and/or modify it under
5 * the terms of the GNU Lesser General Public License version 3, as published by
5 * 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
48 Q_EMIT pushedLeftBoundary(qAbs(newX), buttons);
48 Q_EMIT pushedLeftBoundary(qAbs(newX), buttons);
49 newX = 0;
49 newX = 0;
50 } else if (newX >= parentItem()->width()) {
50 } else if (newX >= parentItem()->width()) {
51− Q_EMIT pushedRightBoundary(newX - parentItem()->width(), buttons);
51+ Q_EMIT pushedRightBoundary(newX - (parentItem()->width() - 1), buttons);
52 newX = parentItem()->width() - 1;
52 newX = parentItem()->width() - 1;
53 }
53 }
54 setX(newX);
54 setX(newX);