X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2Fclient.cc;h=f83a8a3de4fdb73c79932015c435ba08629d3725;hb=619ad666fc3091a2ec022cbe4d829123ee94398b;hp=603a08bdecc43276e6697ff2548e9fe7338c095b;hpb=53001eebae2c5623cce6b865e616c66e8b998dbd;p=chaz%2Fopenbox diff --git a/src/client.cc b/src/client.cc index 603a08bd..f83a8a3d 100644 --- a/src/client.cc +++ b/src/client.cc @@ -99,10 +99,10 @@ void Client::getGravity() long junk; if (XGetWMNormalHints(**otk::display, _window, &size, &junk) && - size.flags & PWinGravity) + size.flags & PWinGravity) { // first try the normal hints _gravity = size.win_gravity; - else { + } else { // then fall back to the attribute ret = XGetWindowAttributes(**otk::display, _window, &wattrib); assert(ret != BadWindow);