diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-04-17 05:13:18 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-04-17 05:13:18 +0000 |
| commit | 55c424d38bb119bd04199ed5e73b035b00474dd9 (patch) | |
| tree | c496cd68a295c3b964979ffe62f160ad071ad92b | |
| parent | 1617489f20920f9f3ca634794f4a08589c32cd14 (diff) | |
put text centered in the popup dialog properly
| -rw-r--r-- | openbox/framerender.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/openbox/framerender.c b/openbox/framerender.c index 03f7583d..59ede4d8 100644 --- 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); |
