diff options
Diffstat (limited to 'common')
-rw-r--r-- | common/rfb/VNCSConnectionST.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/rfb/VNCSConnectionST.cxx b/common/rfb/VNCSConnectionST.cxx index 5adb766e..932abc0b 100644 --- a/common/rfb/VNCSConnectionST.cxx +++ b/common/rfb/VNCSConnectionST.cxx @@ -1131,7 +1131,7 @@ void VNCSConnectionST::setStatus(int status) accessRights = accessRights | AccessPtrEvents | AccessKeyEvents | AccessView; break; case 1: - accessRights = accessRights & ~(AccessPtrEvents | AccessKeyEvents) | AccessView; + accessRights = (accessRights & ~(AccessPtrEvents | AccessKeyEvents)) | AccessView; break; case 2: accessRights = accessRights & ~(AccessPtrEvents | AccessKeyEvents | AccessView); |