mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-18 05:11:41 +00:00
Fixed: #979 Implement getWindowPos for Linux
This commit is contained in:
parent
52fec0acff
commit
fb7eece1ff
1 changed files with 1 additions and 6 deletions
|
@ -1515,12 +1515,7 @@ void CDriverGL::getWindowPos(uint32 &x, uint32 &y)
|
||||||
unsigned int depth = 0;
|
unsigned int depth = 0;
|
||||||
|
|
||||||
// Get geometry information about root window
|
// Get geometry information about root window
|
||||||
if (XGetGeometry(_dpy, RootWindow(_dpy, screen), &_win, &xtmp, &ytmp, &width, &height, &border_width, &depth))
|
if (!XGetGeometry(_dpy, RootWindow(_dpy, screen), &_win, &xtmp, &ytmp, &width, &height, &border_width, &depth))
|
||||||
{
|
|
||||||
display_width = width;
|
|
||||||
display_height = height;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
nlwarning("can't get root window geometry");
|
nlwarning("can't get root window geometry");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue