summaryrefslogtreecommitdiff
path: root/src/video
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2021-02-14 12:36:11 +0100
committerMichael Lutz <michi@icosahedron.de>2021-02-14 12:58:45 +0100
commitf5555a6d262a77f3754934447d7440df381f37d9 (patch)
tree52062ad65761cfb36411cc40c9ca97f025f4c646 /src/video
parente5c325364285b1e6e93afa2a0a79b1ec437f238e (diff)
downloadopenttd-f5555a6d262a77f3754934447d7440df381f37d9.tar.xz
Fix 9c872192: [OSX] Clear mouse button emulation flag.
Diffstat (limited to 'src/video')
-rw-r--r--src/video/cocoa/cocoa_wnd.mm1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/video/cocoa/cocoa_wnd.mm b/src/video/cocoa/cocoa_wnd.mm
index afe2cece6..30fa3969b 100644
--- a/src/video/cocoa/cocoa_wnd.mm
+++ b/src/video/cocoa/cocoa_wnd.mm
@@ -564,6 +564,7 @@ void CocoaDialog(const char *title, const char *message, const char *buttonLabel
- (void)mouseUp:(NSEvent *)event
{
if (self->_emulated_down) {
+ self->_emulated_down = false;
[ self rightMouseUp:event ];
} else {
_left_button_down = false;