revert that, center the popups for move/resize and keychains
This commit is contained in:
parent
7736fcc4b6
commit
acf6273feb
3 changed files with 4 additions and 4 deletions
|
@ -330,6 +330,7 @@ void keyboard_startup(gboolean reconfig)
|
||||||
{
|
{
|
||||||
grab_keys(TRUE);
|
grab_keys(TRUE);
|
||||||
popup = popup_new(FALSE);
|
popup = popup_new(FALSE);
|
||||||
|
popup_set_text_align(popup, RR_JUSTIFY_CENTER);
|
||||||
|
|
||||||
if (!reconfig)
|
if (!reconfig)
|
||||||
client_add_destroy_notify(keyboard_interactive_end_client, NULL);
|
client_add_destroy_notify(keyboard_interactive_end_client, NULL);
|
||||||
|
|
|
@ -68,6 +68,7 @@ static void client_dest(ObClient *client, gpointer data)
|
||||||
void moveresize_startup(gboolean reconfig)
|
void moveresize_startup(gboolean reconfig)
|
||||||
{
|
{
|
||||||
popup = popup_new(FALSE);
|
popup = popup_new(FALSE);
|
||||||
|
popup_set_text_align(popup, RR_JUSTIFY_CENTER);
|
||||||
|
|
||||||
if (!reconfig)
|
if (!reconfig)
|
||||||
client_add_destroy_notify(client_dest, NULL);
|
client_add_destroy_notify(client_dest, NULL);
|
||||||
|
|
|
@ -183,11 +183,9 @@ void popup_delay_show(ObPopup *self, gulong usec, gchar *text)
|
||||||
texth = self->h - emptyy;
|
texth = self->h - emptyy;
|
||||||
h = texth * self->iconhm + emptyy;
|
h = texth * self->iconhm + emptyy;
|
||||||
|
|
||||||
if (self->textw) {
|
if (self->textw)
|
||||||
self->a_text->texture[0].data.text.justify = RR_JUSTIFY_LEFT;
|
|
||||||
textw = self->textw;
|
textw = self->textw;
|
||||||
} else
|
else
|
||||||
self->a_text->texture[0].data.text.justify = RR_JUSTIFY_CENTER;
|
|
||||||
|
|
||||||
iconx = textx = l + ob_rr_theme->paddingx;
|
iconx = textx = l + ob_rr_theme->paddingx;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue