diff --git a/data/xsession/openbox-gnome-session.in b/data/xsession/openbox-gnome-session.in index 6765ae82..1f17edbc 100644 --- a/data/xsession/openbox-gnome-session.in +++ b/data/xsession/openbox-gnome-session.in @@ -37,7 +37,7 @@ else if test -z "$SESSION"; then # if its empty then just run openbox SESSION="[openbox]" - elif test -z $(echo "$SESSION" | grep -q openbox); then + elif echo "$SESSION" | grep -q openbox; then # if openbox isn't in the session then append it SESSION="${SESSION%]},openbox]" fi diff --git a/obrender/image.c b/obrender/image.c index 671b7aee..f86a3ee0 100644 --- a/obrender/image.c +++ b/obrender/image.c @@ -532,7 +532,9 @@ void RrImageDrawImage(RrPixel32 *target, RrTextureImage *img, /* our size difference metric.. */ wdiff = self->original[i]->width - area->width; + if (wdiff < 0) wdiff *= 2; /* prefer scaling down than up */ hdiff = self->original[i]->height - area->height; + if (hdiff < 0) hdiff *= 2; /* prefer scaling down than up */ diff = (wdiff * wdiff) + (hdiff * hdiff); /* find the smallest difference */ diff --git a/openbox/frame.c b/openbox/frame.c index 084f3f6a..8835c632 100644 --- a/openbox/frame.c +++ b/openbox/frame.c @@ -861,10 +861,12 @@ void frame_adjust_area(ObFrame *self, gboolean moved, if (focus_cycle_target == self->client) focus_cycle_update_indicator(self->client); } - if (resized && (self->decorations & OB_FRAME_DECOR_TITLEBAR)) + if (resized && (self->decorations & OB_FRAME_DECOR_TITLEBAR) && + self->label_width) + { XResizeWindow(obt_display, self->label, self->label_width, ob_rr_theme->label_height); - + } } static void frame_adjust_cursors(ObFrame *self) diff --git a/po/hu.po b/po/hu.po index d970bf3e..32203a73 100644 --- a/po/hu.po +++ b/po/hu.po @@ -8,8 +8,8 @@ msgid "" msgstr "" "Project-Id-Version: openbox 3.4.10\n" "Report-Msgid-Bugs-To: http://bugzilla.icculus.org\n" -"POT-Creation-Date: 2010-01-08 22:39+0100\n" -"PO-Revision-Date: 2010-01-08 22:23+0100\n" +"POT-Creation-Date: 2010-01-07 14:19-0500\n" +"PO-Revision-Date: 2010-01-14 11:04+0100\n" "Last-Translator: Laszlo Dvornik \n" "Language-Team: Hungarian \n" "MIME-Version: 1.0\n" @@ -49,7 +49,7 @@ msgstr "Kilépés" #: openbox/actions/exit.c:67 msgid "Are you sure you want to log out?" -msgstr "Biztos, hogy ki akarsz jelentkezni?" +msgstr "Biztos ki akar jelentkezni?" #: openbox/actions/exit.c:68 msgid "Log Out"