- self->bg = XCreateWindow(ob_display, ob_root,
+ self->bg = XCreateWindow(ob_display, RootWindow(ob_display, ob_screen),
0, 0, 1, 1, 0, RrDepth(ob_rr_inst),
InputOutput, RrVisual(ob_rr_inst),
CWOverrideRedirect, &attrib);
0, 0, 1, 1, 0, RrDepth(ob_rr_inst),
InputOutput, RrVisual(ob_rr_inst),
CWOverrideRedirect, &attrib);
-void popup_position(Popup *self, int gravity, int x, int y)
+void popup_position(Popup *self, gint gravity, gint x, gint y)
-void popup_show(Popup *self, char *text, ObClientIcon *icon)
+void popup_set_text_align(Popup *self, RrJustify align)
+{
+ if (!self->a_text)
+ self->a_text = RrAppearanceCopy(ob_rr_theme->app_hilite_label);
+
+ self->a_text->texture[0].data.text.justify = align;
+}
+
+void popup_show(Popup *self, gchar *text, ObClientIcon *icon)
/* create the shit if needed */
if (!self->a_bg)
self->a_bg = RrAppearanceCopy(ob_rr_theme->app_hilite_bg);
if (self->hasicon && !self->a_icon)
/* create the shit if needed */
if (!self->a_bg)
self->a_bg = RrAppearanceCopy(ob_rr_theme->app_hilite_bg);
if (self->hasicon && !self->a_icon)