http://bugs.winehq.org/show_bug.cgi?id=18448
Igor Tarasov tarasov.igor@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |UNCONFIRMED Resolution|WORKSFORME |
--- Comment #6 from Igor Tarasov tarasov.igor@gmail.com 2009-05-13 03:29:36 --- Okay, thanx. This made thigs a bit different, and while something started to work, there are still some problems, so I reopen the bug.
1. How can unexperienced user get to know about this registry item? Why there is no such item in winecfg? Why this option is DISABLED by default? I don't see ANY reason for this.
2. As ICCCM shows, PRIMARY selection gets filled not on copy command, but when text is selected. I am not sure if this is possible to add to wine since there seems to be no adequate system options in windows, and native application support seems to be required, but maybe various system text-related controls might support that out of box (edit, richedit etc)? It would be very cool if wine supported that. So, while StarDict becomes useable with this option enabled, but it still reacts on copy, not on selection. But this is anyway better than nothing, thanx again.
3. PRIMARY selection support is wrong with both UsePrimarySelection enabled and disabled. Here is a test:
a. Open some linux plain text editor. b. Type "Hello world". c. Select "world". Now PRIMARY selection holds "world". d. Copy it (ctrl+c). Now both PRIMARY and CLIPBOARD selections hold work "world". e. Select "hello". Now PRIMARY selection holds "hello", CLIPBOARD holds "world".
The test: In any linux text editor you may click middle mouse button and get word "hello", and use paste command to get "world".
In wine: with UsePrimarySelection disabled: pasting, or clicking middle mouse button returns the same value: CLIPBOARD one, "world". With UsePrimarySelection enabled: pasting or middle-click produces the same result: PRIMARY selection, "hello".
So, wine behavior in both situations is wrong, since this is not how PRIMARY and CLIPBOARD selections work in X, and this is not what users expect from it. And if it is internal choice, then it violates ICCCM in the way it treats selections. And there should be, at least optional, way to make wine work as expected.