Otherwise, pasting the X11 primary selection when empty results an
error and Xlib forcibly exits.
Signed-off-by: Christoph Lohmann <[email protected]>
ofs = 0;
xsev = (XSelectionEvent *)e;
ofs = 0;
xsev = (XSelectionEvent *)e;
+ if (xsev->property == None)
+ return;
do {
if(XGetWindowProperty(xw.dpy, xw.win, xsev->property, ofs,
BUFSIZ/4, False, AnyPropertyType,
do {
if(XGetWindowProperty(xw.dpy, xw.win, xsev->property, ofs,
BUFSIZ/4, False, AnyPropertyType,