summaryrefslogtreecommitdiff
path: root/openbox/place_overlap.c
AgeCommit message (Collapse)Author
2013-09-02Use the BSEARCH() macro in overlap placementDana Jansens
Currently the code rolls its own binary search, but now that we have a well-tested binary search implementation in obt/ we can make use of that.
2013-09-01Fix nits for overlap placement center optionDana Jansens
2013-09-01Add the old <center> option for the placement policy. (Bug 5946)Ian Zimmerman
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
2013-06-07Rename bounds to monitor in place_overlap and move a constMikael Magnusson
2013-04-23Fix least overlap to fall back to the chosen monitor, not (0,0).Mikael Magnusson
2013-04-17Remove some evil tabsMikael Magnusson
2012-10-06Allow application rules to control window size (Fix bug 4661)Dana Jansens
Use the following in your per-app rules: <size> <width>A</width> <height>B</height> </size> A and B can be integer values to specify a size in pixels. They can also be percentages or fractions to be relative to the size of the monitor the window is placed on.
2012-10-06Make LeastOverlap placment replace the behaviour of Smart and address style nitsDana Jansens