X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=engines%2Fopenbox%2Fopenbox.c;h=3fccd2330b1d0357fa344fc40fc886cfa298cd27;hb=ccc5f020514e9c3e0a2a8e858eacc6d0140675a3;hp=792ed2480b048936ba49ce80d05a101f621251df;hpb=a0a55d5761b7c104ac66ba6dc64d33cd66a211b5;p=chaz%2Fopenbox diff --git a/engines/openbox/openbox.c b/engines/openbox/openbox.c index 792ed248..3fccd233 100644 --- a/engines/openbox/openbox.c +++ b/engines/openbox/openbox.c @@ -12,8 +12,8 @@ #include #include -#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; @@ -764,7 +764,7 @@ static void render_label(ObFrame *self) if (self->label_x < 0) return; a = (self->frame.client->focused ? - self->a_focused_label : self->a_focused_label); + self->a_focused_label : self->a_unfocused_label); /* set the texture's text! */ a->texture[0].data.text.string = self->frame.client->title;