diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-06-20 02:17:23 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-06-20 02:17:23 +0000 |
| commit | cd12a2eae5b5b72df08d588ac71d1f6cf6725dfb (patch) | |
| tree | 56413723ec877b3da05e2ece758b45b98d5b589c /openbox/popup.c | |
| parent | 349d0167dbee10ccb1c6200709286a5134ac7121 (diff) | |
simply the render interface by not requiring the setting of all the areas. only take a w and h in paint(). best font layout ever.
Diffstat (limited to 'openbox/popup.c')
| -rw-r--r-- | openbox/popup.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/openbox/popup.c b/openbox/popup.c index 7406d2f1..48c40f28 100644 --- a/openbox/popup.c +++ b/openbox/popup.c @@ -189,12 +189,8 @@ void popup_show(Popup *self, char *text, Icon *icon) } /* set the windows/appearances up */ - RECT_SET(self->a_bg->area, 0, 0, w, h); XMoveResizeWindow(ob_display, self->bg, x, y, w, h); - RECT_SET(self->a_text->area, 0, 0, textw, texth); - RECT_SET(self->a_text->texture[0].position, theme_bevel, theme_bevel, - textw - theme_bevel * 2, texth - theme_bevel * 2); self->a_text->surface.parent = self->a_bg; self->a_text->surface.parentx = iconw + theme_bevel * (self->hasicon ? 2 : 1); @@ -205,8 +201,6 @@ void popup_show(Popup *self, char *text, Icon *icon) if (self->hasicon) { if (iconw < 1) iconw = 1; /* sanity check for crashes */ - RECT_SET(self->a_icon->area, 0, 0, iconw, texth); - RECT_SET(self->a_icon->texture[0].position, 0, 0, iconw, texth); self->a_icon->surface.parent = self->a_bg; self->a_icon->surface.parentx = theme_bevel; self->a_icon->surface.parenty = theme_bevel; @@ -214,10 +208,10 @@ void popup_show(Popup *self, char *text, Icon *icon) theme_bevel, theme_bevel, iconw, texth); } - paint(self->bg, self->a_bg); - paint(self->text, self->a_text); + paint(self->bg, self->a_bg, w, h); + paint(self->text, self->a_text, textw, texth); if (self->hasicon) - paint(self->icon, self->a_icon); + paint(self->icon, self->a_icon, iconw, texth); if (!self->mapped) { XMapWindow(ob_display, self->bg); |
