put text centered in the popup dialog properly
This commit is contained in:
parent
1617489f20
commit
55c424d38b
1 changed files with 4 additions and 0 deletions
|
@ -228,6 +228,10 @@ void framerender_popup_label(Window win, Size *sz, char *text)
|
||||||
a->texture[0].data.text.string = text;
|
a->texture[0].data.text.string = text;
|
||||||
RECT_SET(a->area, 0, 0, sz->width, sz->height);
|
RECT_SET(a->area, 0, 0, sz->width, sz->height);
|
||||||
a->texture[0].position = a->area;
|
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);
|
XSetWindowBorderWidth(ob_display, win, theme_bwidth);
|
||||||
XSetWindowBorder(ob_display, win, theme_b_color->pixel);
|
XSetWindowBorder(ob_display, win, theme_b_color->pixel);
|
||||||
|
|
Loading…
Reference in a new issue