- i = (client_focused(self->client) ?
- (self->iconify_press ?
- theme_a_focused_pressed_iconify :
- theme_a_focused_unpressed_iconify) :
- (self->iconify_press ?
- theme_a_unfocused_pressed_iconify :
- theme_a_unfocused_unpressed_iconify));
- d = (client_focused(self->client) ?
- (self->client->desktop == DESKTOP_ALL ?
- theme_a_focused_pressed_set_desk :
- (self->desk_press ?
- theme_a_focused_pressed_desk :
- theme_a_focused_unpressed_desk)) :
- (self->client->desktop == DESKTOP_ALL ?
- theme_a_unfocused_pressed_set_desk :
- (self->desk_press ?
- theme_a_unfocused_pressed_desk :
- theme_a_unfocused_unpressed_desk)));
- s = (client_focused(self->client) ?
- (self->client->shaded ?
- theme_a_focused_pressed_set_shade :
- (self->shade_press ?
- theme_a_focused_pressed_shade :
- theme_a_focused_unpressed_shade)) :
- (self->client->shaded ?
- theme_a_unfocused_pressed_set_shade :
- (self->shade_press ?
- theme_a_unfocused_pressed_shade :
- theme_a_unfocused_unpressed_shade)));
- c = (client_focused(self->client) ?
- (self->close_press ?
- theme_a_focused_pressed_close :
- theme_a_focused_unpressed_close) :
- (self->close_press ?
- theme_a_unfocused_pressed_close :
- theme_a_unfocused_unpressed_close));
-
- paint(self->title, t);
+ i = (!(self->decorations & OB_FRAME_DECOR_ICONIFY) ?
+ (self->focused ?
+ ob_rr_theme->a_disabled_focused_iconify :
+ ob_rr_theme->a_disabled_unfocused_iconify) :
+ (self->focused ?
+ (self->iconify_press ?
+ ob_rr_theme->a_focused_pressed_iconify :
+ (self->iconify_hover ?
+ ob_rr_theme->a_hover_focused_iconify :
+ ob_rr_theme->a_focused_unpressed_iconify)) :
+ (self->iconify_press ?
+ ob_rr_theme->a_unfocused_pressed_iconify :
+ (self->iconify_hover ?
+ ob_rr_theme->a_hover_unfocused_iconify :
+ ob_rr_theme->a_unfocused_unpressed_iconify))));
+ d = (!(self->decorations & OB_FRAME_DECOR_ALLDESKTOPS) ?
+ (self->focused ?
+ ob_rr_theme->a_disabled_focused_desk :
+ ob_rr_theme->a_disabled_unfocused_desk) :
+ (self->focused ?
+ (self->client->desktop == DESKTOP_ALL ?
+ ob_rr_theme->a_toggled_focused_desk :
+ (self->desk_press ?
+ ob_rr_theme->a_focused_pressed_desk :
+ (self->desk_hover ?
+ ob_rr_theme->a_hover_focused_desk :
+ ob_rr_theme->a_focused_unpressed_desk))) :
+ (self->client->desktop == DESKTOP_ALL ?
+ ob_rr_theme->a_toggled_unfocused_desk :
+ (self->desk_press ?
+ ob_rr_theme->a_unfocused_pressed_desk :
+ (self->desk_hover ?
+ ob_rr_theme->a_hover_unfocused_desk :
+ ob_rr_theme->a_unfocused_unpressed_desk)))));
+ s = (!(self->decorations & OB_FRAME_DECOR_SHADE) ?
+ (self->focused ?
+ ob_rr_theme->a_disabled_focused_shade :
+ ob_rr_theme->a_disabled_unfocused_shade) :
+ (self->focused ?
+ (self->client->shaded ?
+ ob_rr_theme->a_toggled_focused_shade :
+ (self->shade_press ?
+ ob_rr_theme->a_focused_pressed_shade :
+ (self->shade_hover ?
+ ob_rr_theme->a_hover_focused_shade :
+ ob_rr_theme->a_focused_unpressed_shade))) :
+ (self->client->shaded ?
+ ob_rr_theme->a_toggled_unfocused_shade :
+ (self->shade_press ?
+ ob_rr_theme->a_unfocused_pressed_shade :
+ (self->shade_hover ?
+ ob_rr_theme->a_hover_unfocused_shade :
+ ob_rr_theme->a_unfocused_unpressed_shade)))));
+ c = (!(self->decorations & OB_FRAME_DECOR_CLOSE) ?
+ (self->focused ?
+ ob_rr_theme->a_disabled_focused_close :
+ ob_rr_theme->a_disabled_unfocused_close) :
+ (self->focused ?
+ (self->close_press ?
+ ob_rr_theme->a_focused_pressed_close :
+ (self->close_hover ?
+ ob_rr_theme->a_hover_focused_close :
+ ob_rr_theme->a_focused_unpressed_close)) :
+ (self->close_press ?
+ ob_rr_theme->a_unfocused_pressed_close :
+ (self->close_hover ?
+ ob_rr_theme->a_hover_unfocused_close :
+ ob_rr_theme->a_unfocused_unpressed_close))));
+
+ RrPaint(t, self->title, self->width, ob_rr_theme->title_height);
+
+ ob_rr_theme->a_clear->surface.parent = t;
+ ob_rr_theme->a_clear->surface.parentx = 0;
+ ob_rr_theme->a_clear->surface.parenty = 0;
+
+ RrPaint(ob_rr_theme->a_clear, self->tlresize,
+ ob_rr_theme->grip_width, ob_rr_theme->handle_height);
+
+ ob_rr_theme->a_clear->surface.parentx =
+ self->width - ob_rr_theme->grip_width;
+
+ RrPaint(ob_rr_theme->a_clear, self->trresize,
+ ob_rr_theme->grip_width, ob_rr_theme->handle_height);
+