aboutsummaryrefslogtreecommitdiffstats
path: root/unix/xserver/hw/vnc/XserverDesktop.h
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2023-02-25 15:16:18 +0100
committerPierre Ossman <ossman@cendio.se>2024-08-12 16:46:15 +0200
commit9fae0999d3efa7a04698d639f7bd842ede7a83d2 (patch)
tree6dda527a4b03cd15f7292e95fb13883e434f3367 /unix/xserver/hw/vnc/XserverDesktop.h
parent5c3371d8e7e58fd873699c5309e5a74ed0e9fac4 (diff)
downloadtigervnc-9fae0999d3efa7a04698d639f7bd842ede7a83d2.tar.gz
tigervnc-9fae0999d3efa7a04698d639f7bd842ede7a83d2.zip
Better type for pointer button mask
This is a very limited bit field, so use an 8 bit type to clearly show how many bits are available.
Diffstat (limited to 'unix/xserver/hw/vnc/XserverDesktop.h')
-rw-r--r--unix/xserver/hw/vnc/XserverDesktop.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/unix/xserver/hw/vnc/XserverDesktop.h b/unix/xserver/hw/vnc/XserverDesktop.h
index 3b0f869f..d287b72f 100644
--- a/unix/xserver/hw/vnc/XserverDesktop.h
+++ b/unix/xserver/hw/vnc/XserverDesktop.h
@@ -95,7 +95,7 @@ public:
void terminate() override;
void queryConnection(network::Socket* sock,
const char* userName) override;
- void pointerEvent(const rfb::Point& pos, int buttonMask) override;
+ void pointerEvent(const rfb::Point& pos, uint8_t buttonMask) override;
void keyEvent(uint32_t keysym, uint32_t keycode, bool down) override;
unsigned int setScreenLayout(int fb_width, int fb_height,
const rfb::ScreenSet& layout) override;