Fixed the Linux makefile of the Qt sample

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1145 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
laurentgom 2009-06-17 07:55:46 +00:00
parent 1e8cb5827d
commit 0ad6295ff4
2 changed files with 3 additions and 12 deletions

View file

@ -349,20 +349,11 @@ WindowImplX11::~WindowImplX11()
// Close the display
CloseDisplay();
}
////////////////////////////////////////////////////////////
/// Check if there's an active context on the current thread
////////////////////
////////////////////////////////////////////////////////////
/// Filter the received events
/// (only allow those matching a specific window)
////////////////////////////////////////////////////////////
Bool CheckEvent(::Display*, XEvent* Event, XPointer UserData)
{
// Just check if the event matches our window
return Event->xany.window == reinterpret_cast< ::Window >(UserData);
}////////////////////////////////////////
bool WindowImplX11::IsContextActive()
{
return glXGetCurrentContext() != NULL;