http://bugs.winehq.org/show_bug.cgi?id=35485
Bug ID: 35485 Summary: Tab control is keeping pressed with TCM_SETCURSEL wParam:-1 Product: Wine Version: unspecified Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: comctl32 Assignee: wine-bugs@winehq.org Reporter: s.wanabe@gmail.com Classification: Unclassified
When Wine is recieved TCM_SETCURSEL with wParam == -1, dwState of current pressed tab is kept TCIS_BUTTONPRESSED. I have confirmed this with wine-1.4.1 and master branch 82b38139, on ubuntu 13.10.
TAB_GetItem(infoPtr, prevItem)->dwState &= ~TCIS_BUTTONPRESSED;
This is a line in TAB_SetCurSel(). I guess this process is needed also when wParam == -1, isn't this?
Effects example:
xyzzy editor (Stable English version) http://xyzzy.s53.xrea.com/english/archive/ (Stable Japanese version) http://www.jsdlab.co.jp/~kamei/ (Developing Japanese version) https://github.com/xyzzy-022/xyzzy
To reproduce the issue:
1. Run xyzzy.exe on Wine 2. Type [ALT] v q b to show buffer-tab 3. Type [ESC] x new-file to create new buffer-tab 4. Click "*scratch*" tab to Select the buffer 5. Same as 3. (Type [ESC] x new-file to create new buffer-tab) 6. Make sure of unselectable buffer-tabs
Xyzzy send TCM_SETCURSEL with -1 in above 5.