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
cb1740933f
commit
8974a1ab8d
@ -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);
|
||||
|
@ -4,7 +4,7 @@
|
||||
* Copyright (c) 2004 Marius Aamodt Eriksen <marius@monkey.org>
|
||||
* All rights reserved.
|
||||
*
|
||||
* $Id: search.c,v 1.3 2007/06/26 19:34:26 niallo Exp $
|
||||
* $Id: search.c,v 1.4 2007/10/02 18:01:45 jasper Exp $
|
||||
*/
|
||||
|
||||
#include "headers.h"
|
||||
@ -239,6 +239,11 @@ search_start(struct menu_q *menuq,
|
||||
}
|
||||
if (y + dy >= ymax) {
|
||||
y = ymax - dy;
|
||||
/* If the menu is too high, never hide the
|
||||
* top of the menu.
|
||||
*/
|
||||
if (y < 0)
|
||||
y = 0;
|
||||
warp = 1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user