diff options
author | Valery Ushakov <uwe@stderr.spb.ru> | 2020-03-07 04:41:06 +0300 |
---|---|---|
committer | Valery Ushakov <uwe@stderr.spb.ru> | 2020-03-07 04:41:06 +0300 |
commit | c82cb0a62100fbcab34a1466b49fc687fc570af6 (patch) | |
tree | 604daa12bb4cb3e30a0e85fc25ce3f8b03125b54 | |
parent | 7828d5d2aa2aeba1588dba190fd80dcab95d982b (diff) |
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.
-rw-r--r-- | emu/port/win-x11a.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 = "<XGetAtomName failed>"; + 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; } |