summaryrefslogtreecommitdiff
path: root/openbox
diff options
context:
space:
mode:
Diffstat (limited to 'openbox')
-rw-r--r--openbox/keyboard.c1
-rw-r--r--openbox/moveresize.c1
-rw-r--r--openbox/popup.c6
3 files changed, 4 insertions, 4 deletions
diff --git a/openbox/keyboard.c b/openbox/keyboard.c
index 218e251a..51f2cff9 100644
--- a/openbox/keyboard.c
+++ b/openbox/keyboard.c
@@ -330,6 +330,7 @@ void keyboard_startup(gboolean reconfig)
{
grab_keys(TRUE);
popup = popup_new(FALSE);
+ popup_set_text_align(popup, RR_JUSTIFY_CENTER);
if (!reconfig)
client_add_destroy_notify(keyboard_interactive_end_client, NULL);
diff --git a/openbox/moveresize.c b/openbox/moveresize.c
index 38dab22d..232cc9b9 100644
--- a/openbox/moveresize.c
+++ b/openbox/moveresize.c
@@ -68,6 +68,7 @@ static void client_dest(ObClient *client, gpointer data)
void moveresize_startup(gboolean reconfig)
{
popup = popup_new(FALSE);
+ popup_set_text_align(popup, RR_JUSTIFY_CENTER);
if (!reconfig)
client_add_destroy_notify(client_dest, NULL);
diff --git a/openbox/popup.c b/openbox/popup.c
index 3924a4d1..2fb275ca 100644
--- a/openbox/popup.c
+++ b/openbox/popup.c
@@ -183,11 +183,9 @@ void popup_delay_show(ObPopup *self, gulong usec, gchar *text)
texth = self->h - emptyy;
h = texth * self->iconhm + emptyy;
- if (self->textw) {
- self->a_text->texture[0].data.text.justify = RR_JUSTIFY_LEFT;
+ if (self->textw)
textw = self->textw;
- } else
- self->a_text->texture[0].data.text.justify = RR_JUSTIFY_CENTER;
+ else
iconx = textx = l + ob_rr_theme->paddingx;