summaryrefslogtreecommitdiff
path: root/data/rc.xsd
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-05-21 03:42:25 +0000
committerDana Jansens <danakj@orodu.net>2007-05-21 03:42:25 +0000
commitfd8ce9414aa12028b26fd67082e843ea161e3b90 (patch)
treebc90ab00edd37f27e4649d7e20f53eb109098153 /data/rc.xsd
parentadd9c3c1bbb2a9dca01d1bd79147f86328396e47 (diff)
use simple pattern matching for per-app settings. all rules that match are applied to a window rather than just the first
Diffstat (limited to 'data/rc.xsd')
-rw-r--r--data/rc.xsd8
1 files changed, 8 insertions, 0 deletions
diff --git a/data/rc.xsd b/data/rc.xsd
index ca99419a..64cbb98e 100644
--- a/data/rc.xsd
+++ b/data/rc.xsd
@@ -153,6 +153,7 @@
<xsd:complexType name="window_position">
<xsd:element name="x" type="ob:center_or_int"/>
<xsd:element name="y" type="ob:center_or_int"/>
+ <xsd:element name="monitor" type="ob:mouse_or_int"/>
<xsd:element minOccurs="0" name="head" type="xsd:string"/>
</xsd:complexType>
<xsd:complexType name="application">
@@ -330,6 +331,13 @@
<xsd:pattern value="center|0|[1-9][0-9]*"/>
</xsd:restriction>
</xsd:simpleType>
+ <xsd:simpleType name="mouse_or_int">
+ <xsd:restriction base="xsd:string">
+ <!-- ob: atoi($_) unless $_ eq 'center'; -->
+ <!-- I think the regexp DTRT WRT atoi. -->
+ <xsd:pattern value="mouse|0|[1-9][0-9]*"/>
+ </xsd:restriction>
+ </xsd:simpleType>
<xsd:simpleType name="contextname">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="Desktop"/>