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@
This commit is contained in:
jasper
2007-10-02 18:01:45 +00:00
parent 0584867396
commit 56994282f0
2 changed files with 9 additions and 0 deletions

View File

@@ -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);