all decor anchors supported
authorDerek Foreman <manmower@gmail.com>
Tue, 27 May 2003 00:50:02 +0000 (00:50 +0000)
committerDerek Foreman <manmower@gmail.com>
Tue, 27 May 2003 00:50:02 +0000 (00:50 +0000)
openbox/frame.c

index d07f266168d09a679109de913fd7056152d37513..14e4fd1fa1bb732b2f49898bc92455d7a387f9f4 100644 (file)
@@ -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);