Changeset View
Changeset View
Standalone View
Standalone View
src/common/x11wacom.cpp
Show First 20 Lines • Show All 64 Lines • ▼ Show 20 Line(s) | 30 | { | |||
---|---|---|---|---|---|
65 | } | 65 | } | ||
66 | 66 | | |||
67 | // get the maximum area | 67 | // get the maximum area | ||
68 | QList<long> maximumArea; | 68 | QList<long> maximumArea; | ||
69 | 69 | | |||
70 | if (x11Device.getLongProperty(areaProperty, maximumArea, 4) && maximumArea.size() == 4) { | 70 | if (x11Device.getLongProperty(areaProperty, maximumArea, 4) && maximumArea.size() == 4) { | ||
71 | maximumAreaRect.setX(maximumArea.at(0)); | 71 | maximumAreaRect.setX(maximumArea.at(0)); | ||
72 | maximumAreaRect.setY(maximumArea.at(1)); | 72 | maximumAreaRect.setY(maximumArea.at(1)); | ||
73 | maximumAreaRect.setWidth(maximumArea.at(2)); | 73 | maximumAreaRect.setWidth(maximumArea.at(2) - maximumArea.at(0)); | ||
74 | maximumAreaRect.setHeight(maximumArea.at(3)); | 74 | maximumAreaRect.setHeight(maximumArea.at(3) - maximumArea.at(1)); | ||
75 | } | 75 | } | ||
76 | 76 | | |||
77 | // reset the area back to the previous value | 77 | // reset the area back to the previous value | ||
78 | if (!x11Device.setLongProperty(areaProperty, previousArea)) { | 78 | if (!x11Device.setLongProperty(areaProperty, previousArea)) { | ||
79 | qCWarning(COMMON) << QString::fromLatin1("Failed to set tablet area property on X11 input device '%1'!").arg(deviceName); | 79 | qCWarning(COMMON) << QString::fromLatin1("Failed to set tablet area property on X11 input device '%1'!").arg(deviceName); | ||
80 | } | 80 | } | ||
81 | 81 | | |||
82 | qCDebug(COMMON) << "getMaximumTabletArea result" << maximumAreaRect.toString(); | 82 | qCDebug(COMMON) << "getMaximumTabletArea result" << maximumAreaRect.toString(); | ||
▲ Show 20 Lines • Show All 75 Lines • Show Last 20 Lines |