summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorIan Zimmerman <itz@buug.org>2013-08-17 16:08:25 -0700
committerDana Jansens <danakj@orodu.net>2013-09-01 15:09:03 -0400
commitf866c034bf6e954791442ff029d5ae51ab0bd616 (patch)
tree3794c466a8dc2a62d2bcf8ba6f4a07e2070c81af /data
parent9750e5cea8d8cdab2b8b988a8c5d6392b0dbeae8 (diff)
Add the old <center> option for the placement policy. (Bug 5946)
Original commit messages: . Reformat to move closer to house style . Add center on top of leat overlap place algo . Add sentinel value to edge arrays . Use a Size instead of a Rect for a centering field . Fix off by one bug . Need to declare dx and dy . Pass length of edge array instead of recomputing . Fix missing open-brace in config.c . Address the more trivial subset of danakj comments . Revert "Remove now-unused config_place_center option." This reverts commit 5e282dae08be3b900e0337efa0fae8f3ffa92cd7. . Remove reliance on sentinel value when scanning edge arrays . Avoid need to initialize Size structure by removing it :) . Clean up field expansion code somewhat . Compress code further by using a structure for common args . Fix search for next grid point . Squeeze it even more by not using Size at all
Diffstat (limited to 'data')
-rw-r--r--data/rc.xml3
-rw-r--r--data/rc.xsd1
2 files changed, 4 insertions, 0 deletions
diff --git a/data/rc.xml b/data/rc.xml
index 932521b7..3e5554ba 100644
--- a/data/rc.xml
+++ b/data/rc.xml
@@ -33,6 +33,9 @@
<placement>
<policy>Smart</policy>
<!-- 'Smart' or 'UnderMouse' -->
+ <center>yes</center>
+ <!-- whether to place windows in the center of the free area found or
+ the top left corner -->
<monitor>Primary</monitor>
<!-- with Smart placement on a multi-monitor system, try to place new windows
on: 'Any' - any monitor, 'Mouse' - where the mouse is, 'Active' - where
diff --git a/data/rc.xsd b/data/rc.xsd
index 425d53c9..75dd660e 100644
--- a/data/rc.xsd
+++ b/data/rc.xsd
@@ -70,6 +70,7 @@
</xsd:annotation>
<xsd:sequence>
<xsd:element minOccurs="0" name="policy" type="ob:placementpolicy"/>
+ <xsd:element minOccurs="0" name="center" type="ob:bool"/>
<xsd:element minOccurs="0" name="monitor" type="ob:placementmonitor"/>
<xsd:element minOccurs="0" name="primaryMonitor" type="ob:primarymonitor"/>
</xsd:sequence>