Browse Source

Compatibility with macOS 10.12 SDK

They finally added kVK_RightCommand, so our workaround needs to be
conditional.
tags/v1.8.90
Pierre Ossman 7 years ago
parent
commit
2b0a0ef0e6
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      vncviewer/cocoa.mm

+ 4
- 1
vncviewer/cocoa.mm View File

@@ -37,8 +37,11 @@

#define NoSymbol 0

// These are undocumented for unknown reasons
// This wasn't added until 10.12
#if !defined(MAC_OS_X_VERSION_10_12) || MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_12
const int kVK_RightCommand = 0x36;
#endif
// And this is still missing
const int kVK_Menu = 0x6E;

static bool captured = false;

Loading…
Cancel
Save