projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1617489
)
put text centered in the popup dialog properly
author
Dana Jansens
<danakj@orodu.net>
Thu, 17 Apr 2003 05:13:18 +0000
(
05:13
+0000)
committer
Dana Jansens
<danakj@orodu.net>
Thu, 17 Apr 2003 05:13:18 +0000
(
05:13
+0000)
openbox/framerender.c
patch
|
blob
|
history
diff --git
a/openbox/framerender.c
b/openbox/framerender.c
index 03f7583d3a58f84d512e16e52df910c9b8652430..59ede4d852719de5682374ca29bab5c68e6997d2 100644
(file)
--- a/
openbox/framerender.c
+++ b/
openbox/framerender.c
@@
-228,6
+228,10
@@
void framerender_popup_label(Window win, Size *sz, char *text)
a->texture[0].data.text.string = text;
RECT_SET(a->area, 0, 0, sz->width, sz->height);
a->texture[0].position = a->area;
+ a->texture[0].position.x += theme_bevel;
+ a->texture[0].position.y += theme_bevel;
+ a->texture[0].position.width -= theme_bevel * 2;
+ a->texture[0].position.height -= theme_bevel * 2;
XSetWindowBorderWidth(ob_display, win, theme_bwidth);
XSetWindowBorder(ob_display, win, theme_b_color->pixel);