This commit is contained in:
Dana Jansens 2003-01-17 02:53:06 +00:00
parent 53001eebae
commit 619ad666fc

View file

@ -99,10 +99,10 @@ void Client::getGravity()
long junk; long junk;
if (XGetWMNormalHints(**otk::display, _window, &size, &junk) && if (XGetWMNormalHints(**otk::display, _window, &size, &junk) &&
size.flags & PWinGravity) size.flags & PWinGravity) {
// first try the normal hints // first try the normal hints
_gravity = size.win_gravity; _gravity = size.win_gravity;
else { } else {
// then fall back to the attribute // then fall back to the attribute
ret = XGetWindowAttributes(**otk::display, _window, &wattrib); ret = XGetWindowAttributes(**otk::display, _window, &wattrib);
assert(ret != BadWindow); assert(ret != BadWindow);