From a0cce08c485e74786ebb71d20ee4a638d09b7a50 Mon Sep 17 00:00:00 2001 From: kervala Date: Sun, 21 Nov 2010 22:17:40 +0100 Subject: [PATCH] Changed: isActive() implementation for X --- code/nel/src/3d/driver/opengl/driver_opengl_window.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/nel/src/3d/driver/opengl/driver_opengl_window.cpp b/code/nel/src/3d/driver/opengl/driver_opengl_window.cpp index d59431cdd..8432273af 100644 --- a/code/nel/src/3d/driver/opengl/driver_opengl_window.cpp +++ b/code/nel/src/3d/driver/opengl/driver_opengl_window.cpp @@ -2516,6 +2516,12 @@ bool CDriverGL::isActive() # warning "OpenGL Driver: Missing Mac Implementation for isActive (always true if a window is set)" #elif defined (NL_OS_UNIX) + // check if our window is still active + XWindowAttributes attr; + Status status = XGetWindowAttributes(_dpy, _win, &attr); + + nlwarning("XGetWindowAttributes returned %d", status); + #endif // NL_OS_UNIX return res;