[Bug 18448] Wine does not support X primary selections

wine-bugs at winehq.org wine-bugs at winehq.org
Wed May 13 03:29:37 CDT 2009


http://bugs.winehq.org/show_bug.cgi?id=18448


Igor Tarasov <tarasov.igor at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|CLOSED                      |UNCONFIRMED
         Resolution|WORKSFORME                  |




--- Comment #6 from Igor Tarasov <tarasov.igor at 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.


-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the wine-bugs mailing list