From c9b539a617d65d6670f973728dc1b497a7cd8b29 Mon Sep 17 00:00:00 2001 From: Laurent Gomila Date: Fri, 8 Jul 2011 08:15:36 +0200 Subject: [PATCH] Fixed the Linux implementation of the new Mouse functions --- src/SFML/Window/Linux/GlxContext.cpp | 4 ++-- src/SFML/Window/Linux/InputImpl.cpp | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/SFML/Window/Linux/GlxContext.cpp b/src/SFML/Window/Linux/GlxContext.cpp index 026c2d07..a213ddf7 100644 --- a/src/SFML/Window/Linux/GlxContext.cpp +++ b/src/SFML/Window/Linux/GlxContext.cpp @@ -69,11 +69,11 @@ myWindow (0), myContext (NULL), myOwnsWindow(false) { - // Use the same context as the owner window (important!) + // Use the same display as the owner window (important!) myDisplay = static_cast(owner)->GetDisplay(); // Get the owner window and its device context - myWindow = static_cast(owner->GetSystemHandle()); + myWindow = static_cast< ::Window>(owner->GetSystemHandle()); // Create the context if (myWindow) diff --git a/src/SFML/Window/Linux/InputImpl.cpp b/src/SFML/Window/Linux/InputImpl.cpp index b876f033..9ebb0839 100644 --- a/src/SFML/Window/Linux/InputImpl.cpp +++ b/src/SFML/Window/Linux/InputImpl.cpp @@ -26,6 +26,7 @@ // Headers //////////////////////////////////////////////////////////// #include +#include #include #include