http://bugs.winehq.org/show_bug.cgi?id=22435
Summary: Wine un-highlights selected text when right button is clicked Product: Wine Version: 1.1.42 Platform: x86 URL: http://www.boilsoft.com/download.html OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: markk@clara.co.uk
Using Resource Hunter 1.32 available from http://www.boilsoft.com/download.html shows up a problem related to text selection.
If you select text in a text field, then right-click in order to e.g. choose Copy from the pop-up menu, Wine incorrectly removes the highlighting. (The text is copied to the clipboard correctly however.)
To demonstrate, install and run Resource Hunter. Load an executable into Resource Hunter (you can use the program executable). In the Resource pane in the upper right of the window, click String Table[English (United States)]. The pane in the lower right shows a list of ID numbers and strings. Click on one of the lines so the ID: and Caption: string fields above are filled. Click and drag the mouse pointer to highlight text in the Caption: field. Right-click.
Notice how Wine removes the highlight; it should not do that. Or more specifically... in Windows, I noticed that on right-clicking the highlight is removed then immediately redrawn. Wine is not redrawing the highlight.
http://bugs.winehq.org/show_bug.cgi?id=22435
markk@clara.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |markk@clara.co.uk
--- Comment #1 from markk@clara.co.uk 2010-04-20 11:26:15 --- Also, if instead of dragging to select text, you right-click and choose Select All from the pop-up menu, none of the text is highlighted. If you then right-click and select Copy, the text (which should be highlighted) is copied to the clipboard.
http://bugs.winehq.org/show_bug.cgi?id=22435
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download
http://bugs.winehq.org/show_bug.cgi?id=22435
Vitaliy Margolen vitaliy@kievinfo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |trivial
--- Comment #2 from Vitaliy Margolen vitaliy@kievinfo.com 2010-04-20 21:07:24 --- http://bugs.winehq.org/page.cgi?id=fields.html#bug_severity
http://bugs.winehq.org/show_bug.cgi?id=22435
Vincent Povirk madewokherd@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1
--- Comment #3 from Vincent Povirk madewokherd@gmail.com 2010-04-24 12:55:25 --- Confirming.
I suspect the problem is with focus. Even on Windows, it's very easy to make one of these text boxes lose focus, and when the text box does not have focus, no selection or cursor is drawn, although they are there. You can see this on Windows by selecting some text, switching to another application, switching back, and right-clicking the text box.
It seems like the act of right-clicking is setting focus to the text box on Windows but not on Wine.
http://bugs.winehq.org/show_bug.cgi?id=22435
--- Comment #4 from Vincent Povirk madewokherd@gmail.com 2010-04-24 13:02:08 --- Yep, this can be easily observed with notepad's Font dialog: * Open notepad. * From the Edit or Format menu, choose Font... * Click one of the text boxes. * Right-click on another text box. * Press escape to close the menu.
After pressing escape on Wine, the first text box remains focused, but on Windows, focus changes to the second text box.
http://bugs.winehq.org/show_bug.cgi?id=22435
--- Comment #5 from Vincent Povirk madewokherd@gmail.com 2010-04-24 13:08:20 --- Created an attachment (id=27539) --> (http://bugs.winehq.org/attachment.cgi?id=27539) quick and dirty patch
This patch brings the Wine behavior in line with Windows. It probably needs a testcase though.
http://bugs.winehq.org/show_bug.cgi?id=22435
Vincent Povirk madewokherd@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|-unknown |user32
http://bugs.winehq.org/show_bug.cgi?id=22435
--- Comment #6 from Vincent Povirk madewokherd@gmail.com 2010-04-24 15:01:37 --- Patch sent: http://www.winehq.org/pipermail/wine-patches/2010-April/087742.html
http://bugs.winehq.org/show_bug.cgi?id=22435
--- Comment #7 from Vincent Povirk madewokherd@gmail.com 2010-04-27 09:59:45 --- The patch was committed. Please retest in the latest Wine from Git or 1.1.44 when it's released.
http://bugs.winehq.org/show_bug.cgi?id=22435
markk@clara.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |FIXED
--- Comment #8 from markk@clara.co.uk 2010-05-11 09:20:11 --- Thanks. Testing with Wine 1.1.44, this bug is fixed. Right-clicking on selected text causes it to be un-highlighted then immediately highlighted again (which is how Windows behaves).
http://bugs.winehq.org/show_bug.cgi?id=22435
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #9 from Alexandre Julliard julliard@winehq.org 2010-05-21 14:39:57 --- Closing bugs fixed in 1.2-rc1.
https://bugs.winehq.org/show_bug.cgi?id=22435
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |a5fd32eb84989e39b962798e3b3 | |e5ec7121d7fdb CC| |focht@gmx.net