From f6b50e175bc39763c4660cc88d7f82e5811797de Mon Sep 17 00:00:00 2001 From: Sadrul Habib Chowdhury Date: Tue, 12 Aug 2008 17:39:43 -0400 Subject: [PATCH] A display is not needed for remote window creation Detailed bug report by Jorgen Grahn (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=466072) --- src/socket.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/src/socket.c b/src/socket.c index 09aa73d..4c32ed5 100644 --- a/src/socket.c +++ b/src/socket.c @@ -925,16 +925,11 @@ struct win *wi; void ReceiveMsg() { - int left, len, i; + int left, len; static struct msg m; char *p; int ns = ServerSocket; - struct mode Mode; struct win *wi; -#ifdef REMOTE_DETACH - struct display *next; -#endif - struct display *olddisplays = displays; int recvfd = -1; struct acluser *user; @@ -1102,12 +1097,8 @@ ReceiveMsg() * the window that issued the create message need not be an active * window. Then we create the window without having a display. * Resulting in another inactive window. - * - * Currently we enforce that at least one display exists. But why? - * jw. */ - if (displays) - ExecCreate(&m); + ExecCreate(&m); break; case MSG_CONT: if (display && D_userpid != 0 && kill(D_userpid, 0) == 0) -- 2.11.4.GIT