diff --git a/modules/juce_gui_basics/juce_gui_basics.cpp b/modules/juce_gui_basics/juce_gui_basics.cpp index 4945104390..c495af7fb4 100644 --- a/modules/juce_gui_basics/juce_gui_basics.cpp +++ b/modules/juce_gui_basics/juce_gui_basics.cpp @@ -96,6 +96,7 @@ #include #include #include + #include #include #include diff --git a/modules/juce_gui_basics/native/juce_linux_Windowing.cpp b/modules/juce_gui_basics/native/juce_linux_Windowing.cpp index 5a000c7f9c..d5f13947e2 100644 --- a/modules/juce_gui_basics/native/juce_linux_Windowing.cpp +++ b/modules/juce_gui_basics/native/juce_linux_Windowing.cpp @@ -1284,7 +1284,7 @@ public: keyCode = (int) unicodeChar; if (keyCode < 0x20) - keyCode = XKeycodeToKeysym (display, keyEvent->keycode, currentModifiers.isShiftDown() ? 1 : 0); + keyCode = XkbKeycodeToKeysym (display, keyEvent->keycode, currentModifiers.isShiftDown() ? 1 : 0, 0); keyDownChange = (sym != NoSymbol) && ! updateKeyModifiersFromSym (sym, true); } @@ -1387,7 +1387,7 @@ public: { ScopedXLock xlock; - sym = XKeycodeToKeysym (display, keyEvent->keycode, 0); + sym = XkbKeycodeToKeysym (display, keyEvent->keycode, 0, 0); } const ModifierKeys oldMods (currentModifiers); diff --git a/modules/juce_opengl/juce_opengl.cpp b/modules/juce_opengl/juce_opengl.cpp index f6b24b2c25..d31c5e417a 100644 --- a/modules/juce_opengl/juce_opengl.cpp +++ b/modules/juce_opengl/juce_opengl.cpp @@ -46,61 +46,13 @@ //============================================================================== #elif JUCE_WINDOWS #include - #include - #include - - #if JUCE_WEB_BROWSER - #include - #include - #endif #if JUCE_MSVC && ! JUCE_DONT_AUTOLINK_TO_WIN32_LIBRARIES - #pragma comment(lib, "vfw32.lib") - #pragma comment(lib, "imm32.lib") #pragma comment(lib, "OpenGL32.Lib") #endif - #if JUCE_QUICKTIME && JUCE_MSVC && ! JUCE_DONT_AUTOLINK_TO_WIN32_LIBRARIES - #pragma comment (lib, "QTMLClient.lib") - #endif - - #if JUCE_DIRECT2D && JUCE_MSVC && ! JUCE_DONT_AUTOLINK_TO_WIN32_LIBRARIES - #pragma comment (lib, "Dwrite.lib") - #pragma comment (lib, "D2d1.lib") - #endif - //============================================================================== #elif JUCE_LINUX - #include - #include - #include - #include - #include - #include - #include - - #if JUCE_USE_XINERAMA - /* If you're trying to use Xinerama, you'll need to install the "libxinerama-dev" package.. */ - #include - #endif - - #if JUCE_USE_XSHM - #include - #include - #include - #endif - - #if JUCE_USE_XRENDER - // If you're missing these headers, try installing the libxrender-dev and libxcomposite-dev - #include - #include - #endif - - #if JUCE_USE_XCURSOR - // If you're missing this header, try installing the libxcursor-dev package - #include - #endif - /* Got an include error here? If you want to install OpenGL support, the packages to get are "mesa-common-dev" @@ -108,9 +60,6 @@ */ #include - #undef SIZEOF - #undef KeyPress - //============================================================================== #elif JUCE_MAC #include // These are both just needed with the 10.5 SDK