diff options
| author | Ian Zimmerman <itz@buug.org> | 2012-09-30 20:51:01 -0400 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2012-10-06 21:56:56 -0400 |
| commit | 4d2ccf19168a4089a6a0de0109610479ec6d5507 (patch) | |
| tree | 27cae89a72bdc4e1831a4adf5bc752f0ac87faca /openbox/overlap.h | |
| parent | 01f62ded2fe289fe245f4f05b5825f4bdcbe1dc3 (diff) | |
LeastOverlap placement option (Fix bug 5385)
Adds a new placement algorithm that finds a place on the monitor that overlaps
the least amount of windows as possible.
Original patch by Ian Zimmerman <itz@buug.org>.
Port to Openbox 3.5 by David Vogt <dv@adfinis.c>.
Diffstat (limited to 'openbox/overlap.h')
| -rw-r--r-- | openbox/overlap.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/openbox/overlap.h b/openbox/overlap.h new file mode 100644 index 00000000..0c61035d --- /dev/null +++ b/openbox/overlap.h @@ -0,0 +1,24 @@ +/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- + + overlap.h for the Openbox window manager + Copyright (c) 2011 Ian Zimmerman + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + See the COPYING file for a copy of the GNU General Public License. +*/ + +#include "geom.h" + +void +overlap_find_least_placement(const Rect* client_rects, int n_client_rects, + Rect *const bounds, const Size* req_size, + Point* result); |
