Bug 7121 - Cygwin/Xming, fix an occasional repeating clipboard pasting problem
Summary: Cygwin/Xming, fix an occasional repeating clipboard pasting problem
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/DDX/Xwin (show other bugs)
Version: git
Hardware: x86 (IA32) Windows (All)
: high normal
Assignee: Xorg Project Team
QA Contact:
URL:
Whiteboard:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2006-06-05 07:06 UTC by Colin Harrison
Modified: 2007-01-23 17:34 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Patch to fix the problem (3.19 KB, patch)
2006-06-05 07:07 UTC, Colin Harrison
no flags Details | Splinter Review

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.