summaryrefslogtreecommitdiff
path: root/openbox/popup.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-06-20 00:05:51 +0000
committerDana Jansens <danakj@orodu.net>2003-06-20 00:05:51 +0000
commit6e93be1d2e07ace0c21bc040cfb2e4890667d033 (patch)
tree6cfd6a3574159cdd0b7d1bc66f439ffd6fb90b1d /openbox/popup.c
parent438924b2ad22f6935514bcd4e15d20e73ab004cb (diff)
remove non-planar surfaces
Diffstat (limited to 'openbox/popup.c')
-rw-r--r--openbox/popup.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/openbox/popup.c b/openbox/popup.c
index a550e815..7406d2f1 100644
--- a/openbox/popup.c
+++ b/openbox/popup.c
@@ -195,10 +195,10 @@ void popup_show(Popup *self, char *text, Icon *icon)
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.data.planar.parent = self->a_bg;
- self->a_text->surface.data.planar.parentx = iconw +
+ self->a_text->surface.parent = self->a_bg;
+ self->a_text->surface.parentx = iconw +
theme_bevel * (self->hasicon ? 2 : 1);
- self->a_text->surface.data.planar.parenty = theme_bevel;
+ self->a_text->surface.parenty = theme_bevel;
XMoveResizeWindow(ob_display, self->text,
iconw + theme_bevel * (self->hasicon ? 2 : 1),
theme_bevel, textw, texth);
@@ -207,9 +207,9 @@ void popup_show(Popup *self, char *text, Icon *icon)
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.data.planar.parent = self->a_bg;
- self->a_icon->surface.data.planar.parentx = theme_bevel;
- self->a_icon->surface.data.planar.parenty = theme_bevel;
+ self->a_icon->surface.parent = self->a_bg;
+ self->a_icon->surface.parentx = theme_bevel;
+ self->a_icon->surface.parenty = theme_bevel;
XMoveResizeWindow(ob_display, self->icon,
theme_bevel, theme_bevel, iconw, texth);
}