From f866c034bf6e954791442ff029d5ae51ab0bd616 Mon Sep 17 00:00:00 2001 From: Ian Zimmerman Date: Sat, 17 Aug 2013 16:08:25 -0700 Subject: 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 --- openbox/config.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'openbox/config.h') diff --git a/openbox/config.h b/openbox/config.h index ce1ff885..fc1d217e 100644 --- a/openbox/config.h +++ b/openbox/config.h @@ -88,6 +88,8 @@ 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; -- cgit v1.2.3