]> Dogcows Code - chaz/openbox/commitdiff
set the size of the label properly
authorDana Jansens <danakj@orodu.net>
Mon, 17 Mar 2003 07:28:48 +0000 (07:28 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 17 Mar 2003 07:28:48 +0000 (07:28 +0000)
engines/openbox/openbox.c

index b778563410e074b96825a58874454d30b8a1a685..3fccd2330b1d0357fa344fc40fc886cfa298cd27 100644 (file)
@@ -12,8 +12,8 @@
 #include <X11/Xlib.h>
 #include <glib.h>
 
-#define TITLE_HEIGHT    (s_winfont_height + s_bevel * 2)
 #define LABEL_HEIGHT    (s_winfont_height)
+#define TITLE_HEIGHT    (LABEL_HEIGHT + s_bevel * 2)
 #define HANDLE_Y(f)     (f->innersize.top + f->frame.client->area.height + \
                         f->cbwidth)
 #define BUTTON_SIZE     (LABEL_HEIGHT - 2)
@@ -636,7 +636,7 @@ static void layout_title(ObFrame *self)
     if (self->label_width < 1) self->label_width = 1;
 
     XResizeWindow(ob_display, self->label, self->label_width,
-                  s_winfont_height);
+                  LABEL_HEIGHT);
   
     if (!n) {
        self->frame.client->decorations &= ~Decor_Icon;
This page took 0.023027 seconds and 4 git commands to generate.