Fixed: #979 Implement getWindowPos for Linux

This commit is contained in:
kervala 2010-06-12 17:57:45 +02:00
parent 2fb7d87cd2
commit 62169db22b

View file

@ -1515,12 +1515,7 @@ void CDriverGL::getWindowPos(uint32 &x, uint32 &y)
unsigned int depth = 0;
// Get geometry information about root window
if (XGetGeometry(_dpy, RootWindow(_dpy, screen), &_win, &xtmp, &ytmp, &width, &height, &border_width, &depth))
{
display_width = width;
display_height = height;
}
else
if (!XGetGeometry(_dpy, RootWindow(_dpy, screen), &_win, &xtmp, &ytmp, &width, &height, &border_width, &depth))
{
nlwarning("can't get root window geometry");
}