diff options
author | Okan Demirmen <okan@cvs.openbsd.org> | 2008-05-18 20:06:37 +0000 |
---|---|---|
committer | Okan Demirmen <okan@cvs.openbsd.org> | 2008-05-18 20:06:37 +0000 |
commit | 216170d9e51a58931478fa1676fce835734e3154 (patch) | |
tree | d74b505132cf8b1ce24c795ecbf9dbe45a42d3f8 /app/cwm | |
parent | 08737d2276a59600805b37a0597e9014a90099c1 (diff) |
send the correct x/y coordinates to XConfigureWindow()
fixes some windows that seem as if they don't fit; noticed by Edd Barrett.
ok oga@
Diffstat (limited to 'app/cwm')
-rw-r--r-- | app/cwm/xevents.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/cwm/xevents.c b/app/cwm/xevents.c index 24f334443..9b44f6a32 100644 --- a/app/cwm/xevents.c +++ b/app/cwm/xevents.c @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $Id: xevents.c,v 1.13 2008/05/15 22:18:00 oga Exp $ + * $Id: xevents.c,v 1.14 2008/05/18 20:06:36 okan Exp $ */ /* @@ -141,8 +141,8 @@ xev_handle_configurerequest(struct xevent *xev, XEvent *ee) xev_reconfig(cc); } - wc.x = cc != NULL ? 0 : e->x; - wc.y = cc != NULL ? 0 : e->y; + wc.x = cc != NULL ? cc->bwidth : e->x; + wc.y = cc != NULL ? cc->bwidth : e->y; wc.width = e->width; wc.height = e->height; wc.stack_mode = Above; |