Commit d848c114 authored by Roman Gilg's avatar Roman Gilg

Revert "Remove comparison between signed and unsigned integer expressions warning"

This reverts commit 16e90459.

The commit has logical errors, corrupting DND on Wayland. Also the solution
with static_cast to solve the compiler warnings is not a sensible one, it just
hides the root problem.

And next time such a change has to go through review!
parent b822b5c0
......@@ -1508,7 +1508,7 @@ public:
if (!seat->isDragTouch()) {
return false;
}
if (static_cast<quint32>(m_touchId) == id) {
if (m_touchId != id) {
return true;
}
seat->setTimestamp(time);
......@@ -1529,7 +1529,7 @@ public:
// associated with by implementing a key-value getter in KWayland.
m_touchId = id;
}
if (static_cast<quint32>(m_touchId) == id) {
if (m_touchId != id) {
return true;
}
seat->setTimestamp(time);
......@@ -1565,7 +1565,7 @@ public:
seat->touchUp(kwaylandId);
input()->touch()->removeId(id);
}
if (static_cast<quint32>(m_touchId) == id) {
if (m_touchId == id) {
m_touchId = -1;
}
return true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment