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;
- 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;