If you click on the root window, xduplic-copier gets an event with
subwindow==0. Current XmuClientWindow crashes if you call it with a
null window.
Instead, shortcut this: look for subwindow==0 as the way to tell it's
the root window.
if (e->window != e->root) return;
if (e->window != e->root) return;
- sw= XmuClientWindow(display, e->subwindow);
- if (!sw) {
if (!rightbutton) {
stopselecting();
} else {
if (!rightbutton) {
stopselecting();
} else {
+ sw= XmuClientWindow(display, e->subwindow);
+
if (sw == w) { beep(); return; }
for (ownp=&headwn;
if (sw == w) { beep(); return; }
for (ownp=&headwn;