]> Dogcows Code - chaz/openbox/commitdiff
Remove now-unused config_place_center option.
authorDana Jansens <danakj@orodu.net>
Tue, 2 Oct 2012 02:39:39 +0000 (22:39 -0400)
committerDana Jansens <danakj@orodu.net>
Sun, 7 Oct 2012 02:52:31 +0000 (22:52 -0400)
The new LeastOverlap placement doesn't use this option, and it kind of defeats
the purpose of the algorithm.

data/rc.xml
data/rc.xsd
openbox/config.c
openbox/config.h

index 6e8445aabf05792951c117b29b35b08949ba7dd9..1da3b3843c164ee16daf0950108896eb706b64a2 100644 (file)
@@ -33,9 +33,6 @@
 <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
index fb7da5224e243844de79eefb41b7706744cd996c..79a3571fa961d7e8c51e4c4e796e119922c29265 100644 (file)
@@ -70,7 +70,6 @@
         </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>
index d5ff8c45c9b7e12608cc7d825ed3322b5fb14b31..f7cbc3b947c036b5e11101c9d293965c6c66039c 100644 (file)
@@ -37,7 +37,6 @@ gboolean config_focus_under_mouse;
 gboolean config_unfocus_leave;
 
 ObPlacePolicy  config_place_policy;
-gboolean       config_place_center;
 ObPlaceMonitor config_place_monitor;
 
 guint          config_primary_monitor_index;
@@ -598,8 +597,6 @@ static void parse_placement(xmlNodePtr node, gpointer d)
     if ((n = obt_xml_find_node(node, "policy")))
         if (obt_xml_node_contains(n, "UnderMouse"))
             config_place_policy = OB_PLACE_POLICY_MOUSE;
-    if ((n = obt_xml_find_node(node, "center")))
-        config_place_center = obt_xml_node_bool(n);
     if ((n = obt_xml_find_node(node, "monitor"))) {
         if (obt_xml_node_contains(n, "active"))
             config_place_monitor = OB_PLACE_MONITOR_ACTIVE;
@@ -1027,7 +1024,6 @@ void config_startup(ObtXmlInst *i)
     obt_xml_register(i, "focus", parse_focus, NULL);
 
     config_place_policy = OB_PLACE_POLICY_SMART;
-    config_place_center = TRUE;
     config_place_monitor = OB_PLACE_MONITOR_PRIMARY;
 
     config_primary_monitor_index = 1;
index 43386d3c319a02d4a191204bc41a4cbd19758fb2..a111a06f5293dc406f4479124b790603fe721fab 100644 (file)
@@ -83,8 +83,6 @@ extern gboolean config_unfocus_leave;
 
 /*! The algorithm to use for placing new windows */
 extern ObPlacePolicy config_place_policy;
-/*! Place windows in the center of the free area */
-extern gboolean config_place_center;
 /*! Place windows on the active monitor (unless they are part of an application
   already on another monitor) */
 extern ObPlaceMonitor config_place_monitor;
This page took 0.025539 seconds and 4 git commands to generate.