From f866c034bf6e954791442ff029d5ae51ab0bd616 Mon Sep 17 00:00:00 2001 From: Ian Zimmerman Date: Sat, 17 Aug 2013 16:08:25 -0700 Subject: [PATCH] Add the old
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 --- data/rc.xml | 3 + data/rc.xsd | 1 + openbox/config.c | 8 +- openbox/config.h | 2 + openbox/place_overlap.c | 185 +++++++++++++++++++++++++++++++++++++--- 5 files changed, 185 insertions(+), 14 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 @@ Smart +
yes
+ Primary