Tweaks to support QT on Windows

This commit is contained in:
ts-korhonen
2021-12-02 19:35:08 +02:00
parent bddc0c0698
commit b0a4f70fa9
4 changed files with 70 additions and 5 deletions

View File

@@ -622,7 +622,9 @@ static std::array<uint32_t, 256>& selected_keycode = x11_to_xt_base;
uint16_t x11_keycode_to_keysym(uint32_t keycode)
{
#ifdef __APPLE__
#if defined(Q_OS_WINDOWS)
return keycode & 0xFFFF;
#elif defined(__APPLE__)
return darwin_to_xt[keycode];
#else
static Display* x11display = nullptr;