framerender.c for the Openbox window manager
Copyright (c) 2006 Mikael Magnusson
- Copyright (c) 2003 Ben Jansens
+ Copyright (c) 2003-2007 Dana Jansens
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
px = (self->focused ?
RrColorPixel(ob_rr_theme->cb_focused_color) :
RrColorPixel(ob_rr_theme->cb_unfocused_color));
- XSetWindowBackground(ob_display, self->plate, px);
- XClearWindow(ob_display, self->plate);
+ XSetWindowBackground(ob_display, self->inner, px);
+ XClearWindow(ob_display, self->inner);
}
if (self->decorations & OB_FRAME_DECOR_TITLEBAR) {
static void framerender_label(ObFrame *self, RrAppearance *a)
{
- if (self->label_x < 0) return;
+ if (!self->label_on) return;
/* set the texture's text! */
a->texture[0].data.text.string = self->client->title;
RrPaint(a, self->label, self->label_width, ob_rr_theme->label_height);
{
const ObClientIcon *icon;
- if (self->icon_x < 0) return;
+ if (!self->icon_on) return;
icon = client_icon(self->client,
ob_rr_theme->button_size + 2,
static void framerender_max(ObFrame *self, RrAppearance *a)
{
- if (self->max_x < 0) return;
+ if (!self->max_on) return;
RrPaint(a, self->max, ob_rr_theme->button_size, ob_rr_theme->button_size);
}
static void framerender_iconify(ObFrame *self, RrAppearance *a)
{
- if (self->iconify_x < 0) return;
+ if (!self->iconify_on) return;
RrPaint(a, self->iconify,
ob_rr_theme->button_size, ob_rr_theme->button_size);
}
static void framerender_desk(ObFrame *self, RrAppearance *a)
{
- if (self->desk_x < 0) return;
+ if (!self->desk_on) return;
RrPaint(a, self->desk, ob_rr_theme->button_size, ob_rr_theme->button_size);
}
static void framerender_shade(ObFrame *self, RrAppearance *a)
{
- if (self->shade_x < 0) return;
+ if (!self->shade_on) return;
RrPaint(a, self->shade,
ob_rr_theme->button_size, ob_rr_theme->button_size);
}
static void framerender_close(ObFrame *self, RrAppearance *a)
{
- if (self->close_x < 0) return;
+ if (!self->close_on) return;
RrPaint(a, self->close,
ob_rr_theme->button_size, ob_rr_theme->button_size);
}