summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--client.c4
-rw-r--r--search.c5
2 files changed, 9 insertions, 0 deletions
diff --git a/client.c b/client.c
index b2a30bb..f21b114 100644
--- a/client.c
+++ b/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);
diff --git a/search.c b/search.c
index 9a2500d..bccedd3 100644
--- a/search.c
+++ b/search.c
@@ -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;
 			}