From 4d2ccf19168a4089a6a0de0109610479ec6d5507 Mon Sep 17 00:00:00 2001 From: Ian Zimmerman Date: Sun, 30 Sep 2012 20:51:01 -0400 Subject: 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 . Port to Openbox 3.5 by David Vogt . --- openbox/overlap.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 openbox/overlap.h (limited to 'openbox/overlap.h') 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); -- cgit v1.2.3