aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/rio/menu.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2004-03-21 23:24:28 +0000
committerrsc <devnull@localhost>2004-03-21 23:24:28 +0000
commite62ba5ec0bd3245fb70b033d3e4969b00db91452 (patch)
treee0650b08518cf74a54dff913e2767b3fd7f9daf5 /src/cmd/rio/menu.c
parent64044a070aab10224b1ccfc1a974887d5ec0c7aa (diff)
downloadplan9port-e62ba5ec0bd3245fb70b033d3e4969b00db91452.tar.gz
plan9port-e62ba5ec0bd3245fb70b033d3e4969b00db91452.tar.bz2
plan9port-e62ba5ec0bd3245fb70b033d3e4969b00db91452.zip
Fix lots of warnings.
Incorporate changes from Andrey Mirtchovski.
Diffstat (limited to 'src/cmd/rio/menu.c')
-rw-r--r--src/cmd/rio/menu.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/cmd/rio/menu.c b/src/cmd/rio/menu.c
index 54453954..2e875b4e 100644
--- a/src/cmd/rio/menu.c
+++ b/src/cmd/rio/menu.c
@@ -1,6 +1,9 @@
/* Copyright (c) 1994-1996 David Hogan, see README for licence details */
#include <stdio.h>
#include <signal.h>
+#include <unistd.h>
+#include <stdlib.h>
+#include <sys/wait.h>
#include <X11/X.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
@@ -103,6 +106,13 @@ void
spawn(ScreenInfo *s)
{
/*
+ * ugly dance to cause sweeping for terminals.
+ * the very next window created will require sweeping.
+ * hope it's created by the program we're about to
+ * exec!
+ */
+ isNew = 1;
+ /*
* ugly dance to avoid leaving zombies. Could use SIGCHLD,
* but it's not very portable.
*/
@@ -206,7 +216,7 @@ unhide(int n, int map)
c = hiddenc[n];
if (!hidden(c)) {
fprintf(stderr, "9wm: unhide: not hidden: %s(0x%x)\n",
- c->label, c->window);
+ c->label, (int)c->window);
return;
}
@@ -237,7 +247,7 @@ unhidec(Client *c, int map)
return;
}
fprintf(stderr, "9wm: unhidec: not hidden: %s(0x%x)\n",
- c->label, c->window);
+ c->label, (int)c->window);
}
void