summary refs log tree commit diff
path: root/screen.c
diff options
context:
space:
mode:
authoroga <oga>2008-04-16 13:35:37 +0000
committeroga <oga>2008-04-16 13:35:37 +0000
commitf67772be650718b2e408a26ef08e1946a0abf1ab (patch)
tree72af4f9de32716d21f7cd517b815169deee85b2e /screen.c
parent642afbdf8ca97818e849d126619cbc1bb7ff5871 (diff)
downloadcwm-f67772be650718b2e408a26ef08e1946a0abf1ab.tar.gz
cwm-f67772be650718b2e408a26ef08e1946a0abf1ab.tar.xz
cwm-f67772be650718b2e408a26ef08e1946a0abf1ab.zip
Remove screen_infomsg(), nothing uses it.
ok okan.
Diffstat (limited to 'screen.c')
-rw-r--r--screen.c38
1 files changed, 0 insertions, 38 deletions
diff --git a/screen.c b/screen.c
index 8f0ef1c..78344af 100644
--- a/screen.c
+++ b/screen.c
@@ -24,13 +24,6 @@
 extern struct screen_ctx_q	 Screenq;
 extern struct screen_ctx	*Curscreen;
 
-static void
-_clearwindow_cb(int sig)
-{
-	struct screen_ctx *sc = screen_current();
-	XUnmapWindow(X_Dpy, sc->infowin);
-}
-
 struct screen_ctx *
 screen_fromroot(Window rootwin)
 {
@@ -79,35 +72,4 @@ screen_init(void)
 	struct screen_ctx *sc = screen_current();
 
 	sc->cycle_client = NULL;
-
-	sc->infowin = XCreateSimpleWindow(X_Dpy, sc->rootwin, 0, 0,
-	    1, 1, 1, sc->blackpixl, sc->whitepixl);
-
-	/* XXX - marius. */
-	if (signal(SIGALRM, _clearwindow_cb) == SIG_ERR)
-		err(1, "signal");
-}
-
-void
-screen_infomsg(char *msg)
-{
-	struct screen_ctx *sc = screen_current();
-	char buf[1024];
-	int dy, dx;
-	struct fontdesc *font = DefaultFont;
-
-	XUnmapWindow(X_Dpy, sc->infowin);
-	alarm(0);
-
-	snprintf(buf, sizeof(buf), ">%s", msg);
-	dy = font_ascent(font) + font_descent(font) + 1;
-	dx = font_width(font, buf, strlen(buf));
-
-	XMoveResizeWindow(X_Dpy, sc->infowin, 0, 0, dx, dy);
-	XMapRaised(X_Dpy, sc->infowin);
-
-	font_draw(font, buf, strlen(buf), sc->infowin,
-	    0, font_ascent(font) + 1);
-
-	alarm(1);
 }