aboutsummaryrefslogtreecommitdiffstats
path: root/vncviewer/EmulateMB.cxx
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2023-01-06 15:31:24 +0100
committerPierre Ossman <ossman@cendio.se>2023-02-04 14:03:13 +0100
commitf55abd7b0074bc6db9774ed563e02b11e634aa7d (patch)
tree4e84caf8a93212f64e4fc875a99585d7a1fd6c87 /vncviewer/EmulateMB.cxx
parent9854463f16a3b98c55494e40f909d3b1f5f39192 (diff)
downloadtigervnc-f55abd7b0074bc6db9774ed563e02b11e634aa7d.tar.gz
tigervnc-f55abd7b0074bc6db9774ed563e02b11e634aa7d.zip
Use operator overloading for comparison
It is much more natural than custom methods for this very common operation.
Diffstat (limited to 'vncviewer/EmulateMB.cxx')
-rw-r--r--vncviewer/EmulateMB.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vncviewer/EmulateMB.cxx b/vncviewer/EmulateMB.cxx
index 3cd3fea6..33e685c4 100644
--- a/vncviewer/EmulateMB.cxx
+++ b/vncviewer/EmulateMB.cxx
@@ -304,7 +304,7 @@ bool EmulateMB::handleTimeout(rfb::Timer *t)
// Pointer move events are not sent when waiting for the timeout.
// However, we can't let the position get out of sync so when
// the pointer has moved we have to send the latest position here.
- if (!origPos.equals(lastPos)) {
+ if (origPos != lastPos) {
buttonMask = createButtonMask(buttonMask);
sendPointerEvent(lastPos, buttonMask);
}