]> Dogcows Code - chaz/openbox/commitdiff
revert that, center the popups for move/resize and keychains
authorDana Jansens <danakj@orodu.net>
Tue, 5 Jun 2007 16:47:39 +0000 (16:47 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 5 Jun 2007 16:47:39 +0000 (16:47 +0000)
openbox/keyboard.c
openbox/moveresize.c
openbox/popup.c

index 218e251accebbdf69476e157246abfdf9dc73a09..51f2cff9dcb6377205c15d388bb1c9e066a5268a 100644 (file)
@@ -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);
index 38dab22d07649d4a80bcac80629ba3979bf4ad15..232cc9b9716abe38d3a79138f1e969264fbe9758 100644 (file)
@@ -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);
index 3924a4d164a5f45837e4dc6b664682dc35cbd4bb..2fb275cafaffe2f5737448b9ed6c75dc9a93b2ff 100644 (file)
@@ -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;
 
This page took 0.026899 seconds and 4 git commands to generate.