chiark
/
gitweb
/
~ian
/
chiark-utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cgi-fcgi-interp: Temporarily disable compilation
[chiark-utils.git]
/
cprogs
/
xduplic-copier.c
diff --git
a/cprogs/xduplic-copier.c
b/cprogs/xduplic-copier.c
index 46ff0d37161c2530e54114115d2520723459412e..80374f96fc5a8d57c7b1f5fbfdd3baae235688d4 100644
(file)
--- a/
cprogs/xduplic-copier.c
+++ b/
cprogs/xduplic-copier.c
@@
-24,6
+24,8
@@
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
+#include <string.h>
+#include <unistd.h>
static Display *display;
static int selecting, l1_x, l1_y;
static Display *display;
static int selecting, l1_x, l1_y;
@@
-142,8
+144,7
@@
static void buttonpress(XButtonEvent *e) {
if (e->window != e->root) return;
if (e->window != e->root) return;
- sw= XmuClientWindow(display, e->subwindow);
- if (!sw) {
+ if (!e->subwindow) {
if (!rightbutton) {
stopselecting();
} else {
if (!rightbutton) {
stopselecting();
} else {
@@
-158,6
+159,8
@@
static void buttonpress(XButtonEvent *e) {
return;
}
return;
}
+ sw= XmuClientWindow(display, e->subwindow);
+
if (sw == w) { beep(); return; }
for (ownp=&headwn;
if (sw == w) { beep(); return; }
for (ownp=&headwn;