#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;
if (e->window != e->root) return;
- sw= XmuClientWindow(display, e->subwindow);
- if (!sw) {
+ if (!e->subwindow) {
if (!rightbutton) {
stopselecting();
} else {
return;
}
+ sw= XmuClientWindow(display, e->subwindow);
+
if (sw == w) { beep(); return; }
for (ownp=&headwn;