Fixed the Linux implementation of the new Mouse functions

This commit is contained in:
Laurent Gomila 2011-07-08 08:15:36 +02:00 committed by Marco Antognini
parent 6fd80e2598
commit c9b539a617
2 changed files with 3 additions and 2 deletions

View File

@ -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<const WindowImplX11*>(owner)->GetDisplay();
// Get the owner window and its device context
myWindow = static_cast<Window>(owner->GetSystemHandle());
myWindow = static_cast< ::Window>(owner->GetSystemHandle());
// Create the context
if (myWindow)

View File

@ -26,6 +26,7 @@
// Headers
////////////////////////////////////////////////////////////
#include <SFML/Window/Linux/InputImpl.hpp>
#include <SFML/Window/Mouse.hpp>
#include <X11/Xlib.h>
#include <X11/keysym.h>