mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-15 22:08:43 +00:00
Changed: isActive() implementation for X
This commit is contained in:
parent
4624675381
commit
f94e466039
1 changed files with 6 additions and 0 deletions
|
@ -2516,6 +2516,12 @@ bool CDriverGL::isActive()
|
||||||
# warning "OpenGL Driver: Missing Mac Implementation for isActive (always true if a window is set)"
|
# warning "OpenGL Driver: Missing Mac Implementation for isActive (always true if a window is set)"
|
||||||
#elif defined (NL_OS_UNIX)
|
#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
|
#endif // NL_OS_UNIX
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
|
|
Loading…
Reference in a new issue