revert that, center the popups for move/resize and keychains

This commit is contained in:
Dana Jansens 2007-06-05 16:47:39 +00:00
parent 7736fcc4b6
commit acf6273feb
3 changed files with 4 additions and 4 deletions

View 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);

View 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);

View 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;