From c82cb0a62100fbcab34a1466b49fc687fc570af6 Mon Sep 17 00:00:00 2001 From: Valery Ushakov Date: Sat, 7 Mar 2020 04:41:06 +0300 Subject: Silently ignore x-special/gnome-copied-files requests. Modern desktops seem to like to send it a lot so don't spam the user with repeated messages about it. --- emu/port/win-x11a.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'emu/port/win-x11a.c') diff --git a/emu/port/win-x11a.c b/emu/port/win-x11a.c index 569287b6..bbc65761 100644 --- a/emu/port/win-x11a.c +++ b/emu/port/win-x11a.c @@ -1613,11 +1613,11 @@ if(0) iprint("xselect target=%d requestor=%d property=%d selection=%d\n", 8, PropModeReplace, (uchar*)clip.buf, strlen(clip.buf)); qunlock(&clip.lk); }else{ - iprint("get %d\n", xe->target); name = XGetAtomName(xd, xe->target); if(name == nil) - iprint("XGetAtomName failed\n"); - else if(strcmp(name, "TIMESTAMP") != 0) + name = ""; + if(strcmp(name, "TIMESTAMP") != 0 + && strcmp(name, "x-special/gnome-copied-files") != 0) iprint("%s: cannot handle selection request for '%s' (%d)\n", argv0, name, (int)xe->target); r.xselection.property = None; } -- cgit v1.2.3