Bug 7121

Summary: Cygwin/Xming, fix an occasional repeating clipboard pasting problem
Product: xorg Reporter: Colin Harrison <colin.harrison>
Component: Server/DDX/XwinAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: high Keywords: patch
Version: git   
Hardware: x86 (IA32)   
OS: Windows (All)   
i915 platform: i915 features:
Description Flags
Patch to fix the problem none

Description Colin Harrison 2006-06-05 07:06:21 UTC
Sometimes (every blue moon!) repeated painting of the contents of the clipboard 
into an X Window can occur in Xming (same code as Cygwin/X).

The WM_DRAWCLIPBOARD code calls SendMessage() before processing clipboard 
change. Since the SendMessage() function does not return until the receiving 
window has processed the message it's not surprising things can go wrong. The 
attached path reverses this code order in WM_DRAWCLIPBOARD and if nesting is 
detected makes a better stab at correction.

The patch applies to both the monolithic and modular cygwin trees.
Comment 1 Colin Harrison 2006-06-05 07:07:53 UTC
Created attachment 5822 [details] [review]
Patch to fix the problem
Comment 2 Adam Jackson 2006-06-08 15:28:50 UTC
merged to head, thanks!

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.