summaryrefslogtreecommitdiff
path: root/openbox/framerender.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-03-08 01:26:03 +0000
committerDana Jansens <danakj@orodu.net>2007-03-08 01:26:03 +0000
commit56307d60773d0eaf65b10414cd0e3ec0b2adc156 (patch)
tree11ead9f79518f347db5b51c4452b4211498d6497 /openbox/framerender.c
parentb5af5ad3e8f2cd3c23d997970c4f9ec554936960 (diff)
a) remove the top_grip_height business from the theme
b) make the focus indicator based on border width and padding, not the handle height c) add 2 more windows for the top corners for resizing, much easier to find them now. also base their width on padding, not the handle height or other weird things
Diffstat (limited to 'openbox/framerender.c')
-rw-r--r--openbox/framerender.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/openbox/framerender.c b/openbox/framerender.c
index 2195ff74..f0b83bec 100644
--- a/openbox/framerender.c
+++ b/openbox/framerender.c
@@ -146,14 +146,22 @@ void framerender_frame(ObFrame *self)
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->top_grip_height);
+ if (ob_rr_theme->grip_width > 0)
+ RrPaint(ob_rr_theme->a_clear, self->tltresize,
+ ob_rr_theme->grip_width, ob_rr_theme->paddingy);
+ if (ob_rr_theme->title_height > 0)
+ RrPaint(ob_rr_theme->a_clear, self->tllresize,
+ ob_rr_theme->paddingx, ob_rr_theme->title_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->top_grip_height);
+ if (ob_rr_theme->grip_width > 0)
+ RrPaint(ob_rr_theme->a_clear, self->trtresize,
+ ob_rr_theme->grip_width, ob_rr_theme->paddingy);
+ if (ob_rr_theme->title_height > 0)
+ RrPaint(ob_rr_theme->a_clear, self->trrresize,
+ ob_rr_theme->paddingx, ob_rr_theme->title_height);
/* set parents for any parent relative guys */
l->surface.parent = t;