diff options
author | racarr <racarr@d7aaf104-2d23-0410-ae22-9d23157bf5a3> | 2006-12-18 06:53:21 +0000 |
---|---|---|
committer | racarr <racarr@d7aaf104-2d23-0410-ae22-9d23157bf5a3> | 2006-12-18 06:53:21 +0000 |
commit | 791f7c1592415016d89d5bfdc0d867d43bdaefb1 (patch) | |
tree | 3e1c129aedf0b3f3f93dd617984ede3073281136 | |
parent | 1c73601946ee1779c0a7a49373dd7cb6df88e16f (diff) | |
download | marex-dev-791f7c1592415016d89d5bfdc0d867d43bdaefb1.tar.gz marex-dev-791f7c1592415016d89d5bfdc0d867d43bdaefb1.tar.bz2 |
place: Intelligent place windows in center if they wont oversect
git-svn-id: file:///beryl/trunk@1850 d7aaf104-2d23-0410-ae22-9d23157bf5a3
-rw-r--r-- | beryl-plugins/src/place.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/beryl-plugins/src/place.c b/beryl-plugins/src/place.c index 331dd74..b0e5cb3 100644 --- a/beryl-plugins/src/place.c +++ b/beryl-plugins/src/place.c @@ -585,7 +585,10 @@ placeIntelligent (CompWindow * w, int *x, int *y, GList * windows) get_workarea_of_current_output_device (screen, &sRect); - + placeCentered(w,x,y); + XRectangle cRect = {*x,*y,wRect.width,wRect.height}; + if (!rectangle_overlaps_some_window(&cRect,windows)) return; + int xi; int yi; |