chiark / gitweb /
xduplic-copier: do not call XmuClientWindow on a null subwindow
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 29 Nov 2013 19:38:27 +0000 (19:38 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 29 Nov 2013 19:38:27 +0000 (19:38 +0000)
commit9a067a31050292a9b12e2fa055ca12f7ff4937e2
treeb402588f4ac7c3a284fd00d5880caab411d72222
parent8f95420a4c829b5b32cb5ffa9351df3e836126a1
xduplic-copier: do not call XmuClientWindow on a null subwindow

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.
cprogs/xduplic-copier.c