diff options
| author | Mikael Magnusson <mikachu@gmail.com> | 2009-02-20 17:41:34 +0100 |
|---|---|---|
| committer | Mikael Magnusson <mikachu@gmail.com> | 2009-02-20 17:41:34 +0100 |
| commit | 271e0fd9c87a97bb066b35f537a052235413fe5f (patch) | |
| tree | 72afc1d5ef6589b1a4a61c1ac191c9db24d6c1af /openbox/config.c | |
| parent | d0829d4416d83fda4aa4ec8d5f0a7003b0a7f148 (diff) | |
Fix per-app monitor setting
A couple of things were wrong, the parser added 1 to the value despite
expecting the user to give values in the range of 1 to
screen_num_monitors, rc.xml documented the values to start from 0 and
finally the monitor value wasn't copied over at all when matching the
client.
Diffstat (limited to 'openbox/config.c')
| -rw-r--r-- | openbox/config.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); } |
