From: Derek Foreman Date: Tue, 27 May 2003 00:50:02 +0000 (+0000) Subject: all decor anchors supported X-Git-Tag: gl2~96 X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=6856bdc64bec8ff4679ee714863f77b2e364d7d8;p=dana%2Fopenbox.git all decor anchors supported --- diff --git a/openbox/frame.c b/openbox/frame.c index d07f2661..14e4fd1f 100644 --- a/openbox/frame.c +++ b/openbox/frame.c @@ -459,6 +459,29 @@ void frame_adjust_area(Frame *self, gboolean moved, gboolean resized) } break; + case Decor_BottomLeft: + temp = dec->position.x + dec->position.width; + if (temp > le) le = temp; + temp = dec->position.y + dec->position.height; + if (temp > be) be = temp; + break; + + case Decor_Bottom: + temp = dec->position.y + dec->position.height; + if (temp > be) be = temp; + if (dec->position.width > cr->width) { + temp = (dec->position.width - cr->width)/2; + if (temp > re) re = temp; + if (temp > le) le = temp; + } + break; + + case Decor_BottomRight: + temp = dec->position.x + dec->position.width; + if (temp > re) re = temp; + temp = dec->position.y + dec->position.height; + if (temp > be) te = temp; + break; } } printf("frame extends by %d, %d, %d, %d\n", le, te, le, be);