Commit 1af67b4d authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Mike Gabriel

Clipboard.c: GetWindowProperty() does not return BadMatch

parent 018b561b
...@@ -1092,8 +1092,7 @@ void nxagentNotifySelection(XEvent *X) ...@@ -1092,8 +1092,7 @@ void nxagentNotifySelection(XEvent *X)
fprintf(stderr, "%s: GetWindowProperty() returned [%s]\n", __func__, GetXErrorString(result)); fprintf(stderr, "%s: GetWindowProperty() returned [%s]\n", __func__, GetXErrorString(result));
#endif #endif
if (result == BadAlloc || result == BadAtom || if (result == BadAlloc || result == BadAtom ||
result == BadMatch || result == BadValue || result == BadWindow || result == BadValue)
result == BadWindow)
{ {
fprintf (stderr, "Client GetProperty failed. Error = %s", GetXErrorString(result)); fprintf (stderr, "Client GetProperty failed. Error = %s", GetXErrorString(result));
lastServerProperty = None; lastServerProperty = None;
...@@ -1109,11 +1108,9 @@ void nxagentNotifySelection(XEvent *X) ...@@ -1109,11 +1108,9 @@ void nxagentNotifySelection(XEvent *X)
#endif #endif
if (result == BadAlloc || result == BadAtom || if (result == BadAlloc || result == BadAtom ||
result == BadMatch || result == BadValue || result == BadWindow || result == BadValue)
result == BadWindow)
{ {
fprintf (stderr, "SelectionNotify - XChangeProperty failed. Error = %s\n", GetXErrorString(result)); fprintf (stderr, "SelectionNotify - XChangeProperty failed. Error = %s\n", GetXErrorString(result));
lastServerProperty = None; lastServerProperty = None;
} }
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment