From: Mikael Magnusson Date: Fri, 20 Feb 2009 16:44:16 +0000 (+0100) Subject: Merge branch 'backport' into work X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=6d0c4d7fadd2d67760ef62e11385fd261ba6a3c4;hp=4145468a1984e1055a947ad957075ae51f70ca9c;p=chaz%2Fopenbox Merge branch 'backport' into work Conflicts: openbox/config.c --- diff --git a/data/rc.xml b/data/rc.xml index 04447f34..f223f678 100644 --- a/data/rc.xml +++ b/data/rc.xml @@ -692,7 +692,7 @@ 200 1 # specifies the monitor in a xinerama setup. - # 0 is the first head, or 'mouse' for wherever the mouse is + # 1 is the first head, or 'mouse' for wherever the mouse is yes diff --git a/openbox/config.c b/openbox/config.c index 790b03ba..e3be728e 100644 --- a/openbox/config.c +++ b/openbox/config.c @@ -129,6 +129,7 @@ void config_app_settings_copy_non_defaults(const ObAppSettings *src, copy_if(type, (ObClientType)-1); copy_if(decor, -1); copy_if(shade, -1); + copy_if(monitor, -1); copy_if(focus, -1); copy_if(desktop, 0); copy_if(layer, -2); @@ -264,7 +265,7 @@ static void parse_per_app_settings(xmlNodePtr node, gpointer d) if (!g_ascii_strcasecmp(s, "mouse")) settings->monitor = 0; else - settings->monitor = obt_parse_node_int(c) + 1; + settings->monitor = obt_parse_node_int(c); g_free(s); }