]> Dogcows Code - chaz/openbox/commitdiff
Merge branch 'backport' into work
authorMikael Magnusson <mikachu@gmail.com>
Sun, 20 Sep 2009 13:50:13 +0000 (15:50 +0200)
committerMikael Magnusson <mikachu@gmail.com>
Sun, 20 Sep 2009 14:03:48 +0000 (16:03 +0200)
data/xsession/openbox-session.in
openbox/client.c
openbox/client.h
openbox/event.c
po/sk.po

index cc2169f4b6956a00538c8fc779e9fc2e83249296..259dc580cd594331b4dce946995fa3aaba3c0bcd 100644 (file)
@@ -7,7 +7,7 @@ if test -n "$1"; then
   exit
 fi
 
-AUTOSTART="$HOME/.config/openbox/autostart.sh"
+AUTOSTART="${XDG_CONFIG_HOME:-"$HOME/.config"}/openbox/autostart.sh"
 GLOBALAUTOSTART="@configdir@/openbox/autostart.sh"
 
 if test -e $AUTOSTART; then
index 38dc7c1ab81a1ed85d529d4a1fa339a2b62aa120..a62aa5b6c9f2e94a7c96553824e43c19aaae79b0 100644 (file)
@@ -80,7 +80,6 @@ static void client_get_area(ObClient *self);
 static void client_get_desktop(ObClient *self);
 static void client_get_state(ObClient *self);
 static void client_get_shaped(ObClient *self);
-static void client_get_mwm_hints(ObClient *self);
 static void client_get_colormap(ObClient *self);
 static void client_set_desktop_recursive(ObClient *self,
                                          guint target,
@@ -1409,7 +1408,7 @@ static void client_update_transient_tree(ObClient *self,
     }
 }
 
-static void client_get_mwm_hints(ObClient *self)
+void client_get_mwm_hints(ObClient *self)
 {
     guint num;
     guint32 *hints;
index 6d018bc6995ac718aeeaa9a26c6f7a9c56e2aa2b..ca9927467074905901868e868ec9c4c8884ed782 100644 (file)
@@ -632,6 +632,8 @@ void client_setup_decor_and_functions(ObClient *self, gboolean reconfig);
 
 /*! Sets the window's type and transient flag */
 void client_get_type_and_transientness(ObClient *self);
+/*! Gets the motif wm hints */
+void client_get_mwm_hints(ObClient *self);
 
 /*! Returns a client's icon set, or its parents (recursively) if it doesn't
   have one
index e2fd411f9f351ff830d9a35882bec13bd8a0bd2d..3f5c154314896ae28fd7abde9bac3b9bb96c9888 100644 (file)
@@ -1526,6 +1526,13 @@ static void event_handle_client(ObClient *client, XEvent *e)
                reconfigure the window if it needs to. emacs will update its
                normal hints every time it receives a conigurenotify */
             client_reconfigure(client, FALSE);
+        } else if (msgtype == OBT_PROP_ATOM(MOTIF_WM_HINTS)) {
+            client_get_mwm_hints(client);
+            /* This can override some mwm hints */
+            client_get_type_and_transientness(client);
+
+            /* Apply the changes to the window */
+            client_setup_decor_and_functions(client, TRUE);
         } else if (msgtype == XA_WM_HINTS) {
             client_update_wmhints(client);
         } else if (msgtype == XA_WM_TRANSIENT_FOR) {
index 6f16c94cac1bba9ae2d9c923e494df2d586615cc..1f86bce64bb0ee1a5a902ef10ea37e6f054edd64 100644 (file)
--- a/po/sk.po
+++ b/po/sk.po
@@ -2,18 +2,20 @@
 # Copyright (C) 2006 Mikael Magnusson
 # This file is distributed under the same license as the Openbox 3 package.
 # Jozef Říha <jose1711@gmail.com>, 2006, 2007.
+# František Eliáš <elias.frantisek@gmail.com>, 2009.
 #
 msgid ""
 msgstr ""
-"Project-Id-Version: Openbox-3.4.3\n"
+"Project-Id-Version: Openbox-3.4.8\n"
 "Report-Msgid-Bugs-To: http://bugzilla.icculus.org\n"
-"POT-Creation-Date: 2008-11-15 22:28+0100\n"
-"PO-Revision-Date: 2007-12-7 13:43Central Europe Daylight Time\n"
-"Last-Translator: Jozef Riha <jose1711@gmail.com\n"
+"POT-Creation-Date: 2009-07-16 21:05+0200\n"
+"PO-Revision-Date: 2009-07-16 17:30+0200\n"
+"Last-Translator: Frantisek Elias <elias.frantisek@gmail.com>\n"
 "Language-Team: Slovak <sk@sk.org>\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=UTF-8\n"
 "Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=3; plural=(n==1) ? 1 : (n>=2 && n<=4) ? 2 : 0;\n"
 
 #: openbox/actions.c:149
 #, c-format
@@ -22,15 +24,15 @@ msgstr "Vyžiadaná neplatná akcia \"%s\". Takáto akcia neexistuje."
 
 #: openbox/actions/execute.c:128
 msgid "No"
-msgstr ""
+msgstr "Nie"
 
 #: openbox/actions/execute.c:129
 msgid "Yes"
-msgstr ""
+msgstr "Áno"
 
 #: openbox/actions/execute.c:133
 msgid "Execute"
-msgstr ""
+msgstr "Spustiť"
 
 #: openbox/actions/execute.c:142
 #, c-format
@@ -38,21 +40,21 @@ msgid "Failed to convert the path \"%s\" from utf8"
 msgstr "Nepodarilo sa skonvertovať cestu \"%s\" z utf8"
 
 #: openbox/actions/exit.c:52 openbox/actions/session.c:64
-#: openbox/client.c:3465
+#: openbox/client.c:3466
 msgid "Cancel"
-msgstr ""
+msgstr "Zrušiť"
 
 #: openbox/actions/exit.c:53
 msgid "Exit"
-msgstr ""
+msgstr "Ukončiť"
 
 #: openbox/actions/exit.c:56
 msgid "Are you sure you want to exit Openbox?"
-msgstr ""
+msgstr "Určite chcete ukončiť Openbox?"
 
 #: openbox/actions/exit.c:57
 msgid "Exit Openbox"
-msgstr ""
+msgstr "Ukončiť Openbox"
 
 #. TRANSLATORS: Don't translate the word "SessionLogout" as it's the
 #. name of the action you write in rc.xml
@@ -64,45 +66,45 @@ msgstr ""
 
 #: openbox/actions/session.c:65 openbox/actions/session.c:70
 msgid "Log Out"
-msgstr ""
+msgstr "Odhlásiť sa"
 
 #: openbox/actions/session.c:69
 msgid "Are you sure you want to log out?"
-msgstr ""
+msgstr "Naozaj sa chcete odhlásiť?"
 
-#: openbox/client.c:2012
+#: openbox/client.c:2013
 msgid "Unnamed Window"
-msgstr ""
+msgstr "Nepomenované okno"
 
-#: openbox/client.c:2026 openbox/client.c:2058
+#: openbox/client.c:2027 openbox/client.c:2059
 msgid "Killing..."
-msgstr ""
+msgstr "Ukončujem proces..."
 
-#: openbox/client.c:2028 openbox/client.c:2060
+#: openbox/client.c:2029 openbox/client.c:2061
 msgid "Not Responding"
-msgstr ""
+msgstr "Neodpovedá"
 
-#: openbox/client.c:3454
+#: openbox/client.c:3455
 #, c-format
 msgid ""
 "The window \"%s\" does not seem to be responding.  Do you want to force it "
 "to exit by sending the %s signal?"
 msgstr ""
 
-#: openbox/client.c:3456
+#: openbox/client.c:3457
 msgid "End Process"
-msgstr ""
+msgstr "Ukončiť proces"
 
-#: openbox/client.c:3460
+#: openbox/client.c:3461
 #, c-format
 msgid ""
 "The window \"%s\" does not seem to be responding.  Do you want to disconnect "
 "it from the X server?"
-msgstr ""
+msgstr "Zdá sa, že okno \"%s\" neodpovedá. Chcete ho odpojiť z X serveru?"
 
-#: openbox/client.c:3462
+#: openbox/client.c:3463
 msgid "Disconnect"
-msgstr ""
+msgstr "Odpojiť"
 
 #: openbox/client_list_combined_menu.c:87 openbox/client_list_menu.c:91
 msgid "Go there..."
@@ -188,7 +190,7 @@ msgstr "(Ne)_Dekorovať"
 msgid "_Close"
 msgstr "Z_avrieť"
 
-#: openbox/config.c:781
+#: openbox/config.c:782
 #, c-format
 msgid "Invalid button \"%s\" specified in config file"
 msgstr "Neplatné tlačidlo \"%s\" špecifikované v konfiguračnom súbore"
@@ -217,7 +219,7 @@ msgstr "Neplatný výstup z pipe-menu \"%s\""
 msgid "Attempted to access menu \"%s\" but it does not exist"
 msgstr "Pokus o sprístupnenie menu \"%s\", ale to neexistuje"
 
-#: openbox/menu.c:367 openbox/menu.c:368
+#: openbox/menu.c:370 openbox/menu.c:371
 msgid "More..."
 msgstr "Viac..."
 
@@ -379,7 +381,7 @@ msgstr ""
 
 #: openbox/openbox.c:617
 msgid "--config-file requires an argument\n"
-msgstr ""
+msgstr "--config-file vyzaduje parameter\n"
 
 #: openbox/openbox.c:660
 #, c-format
@@ -405,7 +407,7 @@ msgstr "Okenný manažér na obrazovke %d sa neukončuje"
 #. arguments, you can use %1$d for the first one and %2$d for the
 #. second one. For example,
 #. "The current session has %2$d desktops, but Openbox is configured for %1$d ..."
-#: openbox/screen.c:412
+#: openbox/screen.c:419
 #, c-format
 msgid ""
 "Openbox is configured for %d desktop, but the current session has %d.  "
@@ -416,7 +418,7 @@ msgid_plural ""
 msgstr[0] ""
 msgstr[1] ""
 
-#: openbox/screen.c:1180
+#: openbox/screen.c:1205
 #, c-format
 msgid "desktop %i"
 msgstr "plocha %i"
@@ -472,7 +474,7 @@ msgstr "Chyba X: %s"
 
 #: openbox/prompt.c:200
 msgid "OK"
-msgstr ""
+msgstr "OK"
 
 #~ msgid "Failed to execute \"%s\": %s"
 #~ msgstr "Nepodarilo sa spustiť \"%s\": %s"
This page took 0.032187 seconds and 4 git commands to generate.