Merge branch 'backport' into work
authorDana Jansens <danakj@orodu.net>
Thu, 14 Jan 2010 21:19:57 +0000 (16:19 -0500)
committerDana Jansens <danakj@orodu.net>
Thu, 14 Jan 2010 21:19:57 +0000 (16:19 -0500)
Conflicts:

openbox/frame.c

data/xsession/openbox-gnome-session.in
obrender/image.c
openbox/frame.c
po/hu.po

index 6765ae8..1f17edb 100644 (file)
@@ -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
index 671b7ae..f86a3ee 100644 (file)
@@ -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 */
index 084f3f6..8835c63 100644 (file)
@@ -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)
index d970bf3..32203a7 100644 (file)
--- 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 <dvornik@gnome.hu>\n"
 "Language-Team: Hungarian <translation-team-hu@lists.sourceforge.net>\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"