mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
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:
parent
0584867396
commit
56994282f0
4
client.c
4
client.c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user