diff options
| -rw-r--r-- | data/rc.xml | 2 | ||||
| -rw-r--r-- | openbox/config.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/data/rc.xml b/data/rc.xml index 49700fb4..ebe2f310 100644 --- a/data/rc.xml +++ b/data/rc.xml @@ -682,7 +682,7 @@ <y>200</y> <monitor>1</monitor> # 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 </position> <focus>yes</focus> diff --git a/openbox/config.c b/openbox/config.c index d2745178..96fdd0f4 100644 --- a/openbox/config.c +++ b/openbox/config.c @@ -128,6 +128,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); @@ -267,7 +268,7 @@ static void parse_per_app_settings(ObParseInst *inst, xmlDocPtr doc, if (!g_ascii_strcasecmp(s, "mouse")) settings->monitor = 0; else - settings->monitor = parse_int(doc, c) + 1; + settings->monitor = parse_int(doc, c); g_free(s); } |
