mirror of
https://github.com/SFML/SFML.git
synced 2024-11-29 06:41:05 +08:00
Fixed the Linux implementation of the new Mouse functions
This commit is contained in:
parent
270f505570
commit
4fe9a3843a
@ -69,11 +69,11 @@ myWindow (0),
|
|||||||
myContext (NULL),
|
myContext (NULL),
|
||||||
myOwnsWindow(false)
|
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();
|
myDisplay = static_cast<const WindowImplX11*>(owner)->GetDisplay();
|
||||||
|
|
||||||
// Get the owner window and its device context
|
// Get the owner window and its device context
|
||||||
myWindow = static_cast<Window>(owner->GetSystemHandle());
|
myWindow = static_cast< ::Window>(owner->GetSystemHandle());
|
||||||
|
|
||||||
// Create the context
|
// Create the context
|
||||||
if (myWindow)
|
if (myWindow)
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
// Headers
|
// Headers
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
#include <SFML/Window/Linux/InputImpl.hpp>
|
#include <SFML/Window/Linux/InputImpl.hpp>
|
||||||
|
#include <SFML/Window/Mouse.hpp>
|
||||||
#include <X11/Xlib.h>
|
#include <X11/Xlib.h>
|
||||||
#include <X11/keysym.h>
|
#include <X11/keysym.h>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user