// pick a layer to start from
_layer = Layer_Normal;
- getGravity();
getArea();
getDesktop();
getShaped();
updateProtocols();
+ getGravity(); // get the attribute gravity
+ updateNormalHints(); // this may override the attribute gravity
updateWMHints();
updateTitle();
updateIconTitle();
{
XWindowAttributes wattrib;
Status ret;
-
+
ret = XGetWindowAttributes(**otk::display, _window, &wattrib);
assert(ret != BadWindow);
-
_gravity = wattrib.win_gravity;
}
+
void Client::getDesktop()
{
// defaults to the current desktop
case NorthWestGravity:
case WestGravity:
case SouthWestGravity:
- case NorthGravity:
- case CenterGravity:
- case SouthGravity:
break;
case NorthEastGravity:
case EastGravity:
if (addborder) x -= _border_width * 2;
else x += _border_width * 2;
break;
+ case NorthGravity:
+ case SouthGravity:
+ case CenterGravity:
case ForgetGravity:
case StaticGravity:
if (addborder) x -= _border_width;
switch(_gravity) {
default:
case NorthWestGravity:
- case WestGravity:
case NorthGravity:
- case CenterGravity:
case NorthEastGravity:
- case EastGravity:
break;
case SouthWestGravity:
case SouthGravity:
if (addborder) y -= _border_width * 2;
else y += _border_width * 2;
break;
+ case WestGravity:
+ case EastGravity:
+ case CenterGravity:
case ForgetGravity:
case StaticGravity:
if (addborder) y -= _border_width;