xserver-multidpi/hw
Jon TURNEY 851b504199 hw/xwin: Retrieve TARGETS to avoid unnecessary failing conversion attempts
See http://cygwin.com/ml/cygwin-xfree/2013-07/msg00016.html

It looks like the change in a9aca218f5 had some
unforseen consequences.

If the X11 selection contents are not convertable to COMPOUND_TEXT, UTF8_STRING
or STRING format (for example, if it is an image), after those conversion
attempts have failed, we sit in winProcessXEventsTimeout() until the timeout
expires.

It also seems that maybe gnuplot doesn't respond correctly to this sequence of
conversion requests and doesn't reply to some of them, which also causes us to
sit in winProcessXEventsTimeout() until the timeout expires.

The Windows application which has requested the clipboard contents via
GetClipboardContents() is blocked until we return from WM_RENDERFORMAT, so
sitting waiting for this timeout to expire should be avoided.

So instead, explicitly request conversion to the TARGETS target, choose
the most preferred format, and request conversion to that.

Also: if there is no owned selection, there is nothing to paste, so don't bother
trying to convert it.

v2: Fix compilation with -Werror=declaration-after-statement

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Reviewed-by: Colin Harrison <colin.harrison@virgin.net>
2014-11-06 12:23:03 +00:00
..
dmx dix: Always store GC client clip as a region (v2) 2014-10-27 15:46:05 -04:00
kdrive dix: Always store GC client clip as a region (v2) 2014-10-27 15:46:05 -04:00
vfb vfb: Don't reimplement micmap so much 2014-10-08 10:10:39 +02:00
xfree86 xfree86: Bump ABI versions (video: 19, extension: 9) 2014-10-30 13:57:16 -07:00
xnest dix: Always store GC client clip as a region (v2) 2014-10-27 15:46:05 -04:00
xquartz xquartz: Remove useless DRIWindowExposures 2014-10-08 16:01:35 +02:00
xwayland xwayland: always include drm.xml in tarballs 2014-09-18 15:07:20 -07:00
xwin hw/xwin: Retrieve TARGETS to avoid unnecessary failing conversion attempts 2014-11-06 12:23:03 +00:00
Makefile.am Xwayland DDX 2014-04-03 15:19:22 -07:00