diff options
author | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2007-10-02 18:01:46 +0000 |
---|---|---|
committer | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2007-10-02 18:01:46 +0000 |
commit | 6a4b62a3ec78b9061d406ca5e2952e450b4f9b9f (patch) | |
tree | a44ebba7fe613cbc690daf64d01778f921c4005e /app/cwm/client.c | |
parent | 319703d525cbe86304cfceaa4c4e30dce0d240c0 (diff) |
When cycling, only the end of the window names will be printed if the
name is too long. so show the beginning instead.
from Pierre Riteau <pierre.riteau at free.fr>
"looks correct" matthieu@
Diffstat (limited to 'app/cwm/client.c')
-rw-r--r-- | app/cwm/client.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/cwm/client.c b/app/cwm/client.c index 8412fd88a..e9742429f 100644 --- a/app/cwm/client.c +++ b/app/cwm/client.c @@ -4,7 +4,7 @@ * Copyright (c) 2004 Marius Aamodt Eriksen <marius@monkey.org> * All rights reserved. * - * $Id: client.c,v 1.6 2007/06/08 16:29:19 jasper Exp $ + * $Id: client.c,v 1.7 2007/10/02 18:01:45 jasper Exp $ */ #include "headers.h" @@ -705,6 +705,10 @@ client_cycleinfo(struct client_ctx *cc) if ((diff = cc->geom.height - (y + h)) < 0) y += diff; + /* Don't hide the beginning of the window names */ + if (x < 0) + x = 0; + XReparentWindow(X_Dpy, sc->infowin, cc->win, 0, 0); XMoveResizeWindow(X_Dpy, sc->infowin, x, y, w, h); XMapRaised(X_Dpy, sc->infowin); |