xfreerdp: fix cliprdr SelectionNotify enless loop
authorNorbert Federa <norbert.federa@thincast.com>
Wed, 3 Dec 2014 23:19:23 +0000 (00:19 +0100)
committerNorbert Federa <norbert.federa@thincast.com>
Wed, 3 Dec 2014 23:19:23 +0000 (00:19 +0100)
commitc82d8c9c6b97e40789babe132cc4632b53488dd5
tree62f964733adb658226e1273ef02167bf63df5d95
parent7b55c3a48e3228bdb91aa6a39855643d388eefbb
xfreerdp: fix cliprdr SelectionNotify enless loop

xf_cliprdr_process_selection_notify calls xf_cliprdr_send_client_format_list
if the SelectionNotify event property was None.
xf_cliprdr_send_client_format_list called XConvertSelection even if there
was no clipboard owner. In that case the XServer generates a SelectionNotify
event to the requestor (us) with property None and so on ...

The most obvious fix is to ensure that XConvertSelection is not called if
the owner is None which is done in this commit.
client/X11/xf_cliprdr.c