all repos — openbox @ 271e0fd9c87a97bb066b35f537a052235413fe5f

openbox fork - make it a bit more like ryudo

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.
Mikael Magnusson mikachu@gmail.com
commit

271e0fd9c87a97bb066b35f537a052235413fe5f

parent

d0829d4416d83fda4aa4ec8d5f0a7003b0a7f148

2 files changed, 3 insertions(+), 2 deletions(-)

jump to
M data/rc.xmldata/rc.xml

@@ -682,7 +682,7 @@ # right edge (or bottom).

<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>
M openbox/config.copenbox/config.c

@@ -128,6 +128,7 @@

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 @@ gchar *s = parse_string(doc, c);

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); }