X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fresist.c;h=6ab82487aaba555ef97fac112435f53dad7c27af;hb=fdd1c3c8a7eac8ba1246ae64cbfca6f922294c51;hp=33281d6a38daefff2ade2585fee8bb95718f53da;hpb=ef7c210750e5bd657a3ccfc36f61365fdd5a91c8;p=chaz%2Fopenbox diff --git a/openbox/resist.c b/openbox/resist.c index 33281d6a..6ab82487 100644 --- a/openbox/resist.c +++ b/openbox/resist.c @@ -1,3 +1,21 @@ +/* -*- indent-tabs-mode: nil; tab-width: 4; c-basic-offset: 4; -*- + + resist.c for the Openbox window manager + Copyright (c) 2003 Ben Jansens + + 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 "client.h" #include "frame.h" #include "stacking.h" @@ -41,8 +59,8 @@ void resist_move_windows(ObClient *c, gint *x, gint *y) tl = RECT_LEFT(target->frame->area) - 1; tt = RECT_TOP(target->frame->area) - 1; - tr = RECT_RIGHT(target->frame->area)+ 2; - tb = RECT_BOTTOM(target->frame->area) + 2; + tr = RECT_RIGHT(target->frame->area) + 1; + tb = RECT_BOTTOM(target->frame->area) + 1; /* snapx and snapy ensure that the window snaps to the top-most window edge available, without going all the way from