http://bugs.winehq.org/show_bug.cgi?id=30242
Bug #: 30242 Summary: The mouse loses the focus in each new instance Product: Wine Version: 1.5.0 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs@winehq.org ReportedBy: simonalsa@gmail.com Classification: Unclassified
Hi we are trying to port a windows native application compiled in visual studio 6 to an ubuntu lucid linux distribution.
The windows native application works well without problems into the XP, Windows 7, W2K8 R2 native Windows environments.
The windows native application is a legacy application solution composed by three components that at the moment we can port to linux and use it with Wine. Nice job Wine team.
We have tested the native windows application using the lastest builds version (1.3 && 1.4) and a new compilation from the 1.5 sources about Wine
The tests has been performed in Wine desktop mode.
The native windows application is started under a W2K8 R2 enviroment enclosed in a 1024x768 desktop mode using Wine.
The native windows application requires the mfc42 dll library downloaded with winetricks
The components are installed locally into the ".wine" home user profile
The general application is executed remotely under a network share mounted locally into the operating system
I only can say that the program works well in all version built or compiled but we got a weird problem...
Lets me formule a hipotesys
We, 1) Deploy and install the native windows application's components under the ".wine" home use profile 2) Configure the native application windows enviroment. Environment variables. Windows register. Network shares. Etc. 3) Runs the main application. 4) After the single sign-on into the main application the application display a main window into the screen as desktop background. The components are loaded over the displayed main window. 5) The displayed window have an menu bar and lets start up subprocess for each item available. 6) For each subprocess started, the application start up another window that is loaded into the main application desktop 7) Internally, each subprocess is an exe program run by wine
...Here is the problem...
8) The mouse lost the focus over each new subprocess about window 9) The mouse can not pick buttons into the new window. The buttons can not be pressed. 10) The mouse can no pick fields into the new window. The fields can not be selected for input. 11) But the mouse can expand a drop-box menu field. We can select an item from the drop-box menu field. 12) The mouse cannot check/uncheck a checkbox menu field 13) We can move between fields, drop-box, menu checkbox, button, etc using the TAB key for input or select purposes. 14) But we always can use the principal main menu bar about the main window for open new subprocess / windows loaded into the main window 15) When we select a different window loaded into the main window. We can not select the previous window. We can not active the previous windows manually. We windows remains opened and we can not close them.
We think that the mouse loses the focus control over the windows, fields, buttons for each new instance loaded into the main window.
The wine execution do not reports any errors. If we increase the debug level we can not see any considerable errors.
Seems that everything is working well but we are experimenting troubles with the mouse.
Someone can help us?
http://bugs.winehq.org/show_bug.cgi?id=30242
simonalsa simonalsa@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |simonalsa@gmail.com
http://bugs.winehq.org/show_bug.cgi?id=30242
--- Comment #1 from Vitaliy Margolen vitaliy-bugzilla@kievinfo.com 2012-03-22 21:04:47 CDT --- Can you try running your application without virtual desktop? It does not implement full featured window manager and some things might not work properly.
http://bugs.winehq.org/show_bug.cgi?id=30242
--- Comment #2 from simonalsa simonalsa@gmail.com 2012-03-23 11:40:31 CDT --- Hi Vitaliy Margolen
after replicate the same steps without wine desktop mode the lost of focus is still here...
but this is the default wine debugging at console...
fixme:exec:SHELL_execute flags ignored: 0x00000100 fixme:exec:SHELL_execute flags ignored: 0x00000100 fixme:thread:NtQueryInformationThread Cannot get kerneltime or usertime of other threads fixme:thread:NtQueryInformationThread Cannot get kerneltime or usertime of other threads sh-4.1$ fixme:thread:NtQueryInformationThread Cannot get kerneltime or usertime of other threads fixme:thread:NtQueryInformationThread Cannot get kerneltime or usertime of other threads fixme:thread:NtQueryInformationThread Cannot get kerneltime or usertime of other threads fixme:thread:NtQueryInformationThread Cannot get kerneltime or usertime of other threads fixme:msg:pack_message WM_NCPAINT hdc packing not supported yet fixme:msg:pack_message msg 14 (WM_ERASEBKGND) not supported yet fixme:msg:pack_message WM_NCPAINT hdc packing not supported yet
fixme:thread:NtQueryInformationThread Cannot get kerneltime or usertime of other threads
Note that, for each everyone new window this message appears in the console,
fixme:thread:NtQueryInformationThread Cannot get kerneltime or usertime of other threads
Anybody have any idea?
Many thanks for your help
http://bugs.winehq.org/show_bug.cgi?id=30242
--- Comment #3 from simonalsa simonalsa@gmail.com 2012-03-23 12:23:23 CDT --- Created attachment 39506 --> http://bugs.winehq.org/attachment.cgi?id=39506 WINEDEBUG="+cursor,+dinput" wine APP.exe
Logfile: WINEDEBUG="+cursor,+dinput" wine APP.exe
http://bugs.winehq.org/show_bug.cgi?id=30242
--- Comment #4 from simonalsa simonalsa@gmail.com 2012-03-23 12:24:36 CDT --- Created attachment 39507 --> http://bugs.winehq.org/attachment.cgi?id=39507 WINEDEBUG="+cursor,+dinput,+ddraw,+event" wine APP.exe
Logfile: WINEDEBUG="+cursor,+dinput,+ddraw,+event" wine SCE_Test.exe
http://bugs.winehq.org/show_bug.cgi?id=30242
--- Comment #5 from simonalsa simonalsa@gmail.com 2012-03-23 12:34:49 CDT --- .... .... ....
I think that this trace extracted from "WINEDEBUG="+cursor,+dinput" wine APP.exe" appears in earch new window instance
race:cursor:X11DRV_GetCursorPos pointer at (360,240) server pos 360,240 trace:cursor:X11DRV_GetCursorPos pointer at (360,240) server pos 360,240
fixme:thread:NtQueryInformationThread Cannot get kerneltime or usertime of other threads
trace:cursor:LoadCursorA (nil), #7f00 trace:cursor:CURSORICON_Load (nil), #7f00, 0x0, depth 1, fCursor 1, flags 0x8040 trace:cursor:LoadIconA (nil), #7f00 trace:cursor:CURSORICON_Load (nil), #7f00, 0x0, depth 32, fCursor 0, flags 0x8040 trace:cursor:LoadIconA (nil), #7f00 trace:cursor:CURSORICON_Load (nil), #7f00, 0x0, depth 32, fCursor 0, flags 0x8040 trace:cursor:LoadCursorA (nil), #7f00 trace:cursor:CURSORICON_Load (nil), #7f00, 0x0, depth 1, fCursor 1, flags 0x8040 trace:cursor:LoadCursorA (nil), #7f02 trace:cursor:CURSORICON_Load (nil), #7f02, 0x0, depth 1, fCursor 1, flags 0x8040 trace:cursor:SetCursor 0x101c4 trace:cursor:LoadIconA 0x4e0000, "FCP" trace:cursor:CURSORICON_Load 0x4e0000, L"FCP", 0x0, depth 32, fCursor 0, flags 0x8040 trace:cursor:ungrab_clipping_window no longer clipping fixme:msg:pack_message msg 14 (WM_ERASEBKGND) not supported yet fixme:msg:pack_message WM_NCPAINT hdc packing not supported yet fixme:msg:pack_message msg 14 (WM_ERASEBKGND) not supported yet trace:cursor:LoadCursorA (nil), #7f02 trace:cursor:CURSORICON_Load (nil), #7f02, 0x0, depth 1, fCursor 1, flags 0x8040 trace:cursor:SetCursor 0x101c4 trace:cursor:LoadIconA 0x4e0000, "FCP" trace:cursor:CURSORICON_Load 0x4e0000, L"FCP", 0x0, depth 32, fCursor 0, flags 0x8040 trace:cursor:X11DRV_MotionNotify hwnd 0x30056/4000005 pos 357,187 is_hint 0 serial 516 warn:cursor:get_icon_ptr icon handle 0x30142 from other process trace:cursor:SetCursor 0x20106 warn:cursor:get_icon_ptr icon handle 0x30142 from other process trace:cursor:SetCursor 0x20106 trace:cursor:SetCursor 0x20106 trace:cursor:CURSORICON_Load 0x2600001, #01f5, 0x0, depth 32, fCursor 0, flags 0x0040 trace:cursor:ungrab_clipping_window no longer clipping trace:cursor:X11DRV_MotionNotify hwnd 0x30056/4000005 pos 349,169 is_hint 0 serial 516 warn:cursor:get_icon_ptr icon handle 0x20106 from other process trace:cursor:SetCursor 0x20106 trace:cursor:SetCursor 0x20106 trace:cursor:SetCursor 0x20106 trace:cursor:X11DRV_MotionNotify hwnd 0x30056/4000005 pos 345,165 is_hint 0 serial 516 warn:cursor:get_icon_ptr icon handle 0x20106 from other process trace:cursor:SetCursor 0x20106 trace:cursor:SetCursor 0x20106 trace:cursor:SetCursor 0x20106 trace:cursor:X11DRV_MotionNotify hwnd 0x30056/4000005 pos 345,168 is_hint 0 serial 516 warn:cursor:get_icon_ptr icon handle 0x20106 from other process trace:cursor:SetCursor 0x20106 trace:cursor:SetCursor 0x20106 trace:cursor:SetCursor 0x20106 trace:cursor:LoadCursorA (nil), #7f02 trace:cursor:CURSORICON_Load (nil), #7f02, 0x0, depth 1, fCursor 1, flags 0x8040 trace:cursor:SetCursor 0x101c4 warn:cursor:get_icon_ptr icon handle 0x20106 from other process trace:cursor:LoadCursorA (nil), #7f00 trace:cursor:CURSORICON_Load (nil), #7f00, 0x0, depth 1, fCursor 1, flags 0x8040 trace:cursor:SetCursor 0x201b4 trace:cursor:X11DRV_MotionNotify hwnd 0x30056/4000005 pos 345,169 is_hint 0 serial 516 warn:cursor:get_icon_ptr icon handle 0x201b4 from other process trace:cursor:LoadCursorA (nil), #7f02 trace:cursor:CURSORICON_Load (nil), #7f02, 0x0, depth 1, fCursor 1, flags 0x8040 trace:cursor:SetCursor 0x101c4 trace:cursor:X11DRV_MotionNotify hwnd 0x30056/4000005 pos 344,168 is_hint 0 serial 516 warn:cursor:get_icon_ptr icon handle 0x101c4 from other process trace:cursor:X11DRV_MotionNotify hwnd 0x30056/4000005 pos 321,155 is_hint 0 serial 516 warn:cursor:get_icon_ptr icon handle 0x101c4 from other process trace:cursor:LoadCursorA (nil), #7f00 trace:cursor:CURSORICON_Load (nil), #7f00, 0x0, depth 1, fCursor 1, flags 0x8040 trace:cursor:SetCursor 0x201b4 trace:cursor:X11DRV_MotionNotify hwnd 0x30056/4000005 pos 307,153 is_hint 0 serial 516 warn:cursor:get_icon_ptr icon handle 0x201b4 from other process
.... .... ....
This trace appears when i try to click over window instance buttons... but really i can not click over the button or select any fields from window...
.... .... ....
trace:cursor:X11DRV_ButtonPress hwnd 0x30056/4000005 button 0 pos 307,153 trace:cursor:X11DRV_ButtonRelease hwnd 0x30056/4000005 button 0 pos 307,153 warn:cursor:get_icon_ptr icon handle 0x201b4 from other process trace:cursor:X11DRV_MotionNotify hwnd 0x30056/4000005 pos 305,151 is_hint 0 serial 516 warn:cursor:get_icon_ptr icon handle 0x201b4 from other process trace:cursor:X11DRV_MotionNotify hwnd 0x30056/4000005 pos 278,131 is_hint 0 serial 516 warn:cursor:get_icon_ptr icon handle 0x201b4 from other process trace:cursor:X11DRV_MotionNotify hwnd 0x30056/4000005 pos 275,131 is_hint 0 serial 516 trace:cursor:X11DRV_ButtonPress hwnd 0x30056/4000005 button 0 pos 275,131 trace:cursor:X11DRV_MotionNotify hwnd 0x30056/4000005 pos 271,129 is_hint 0 serial 516 trace:cursor:X11DRV_ButtonRelease hwnd 0x30056/4000005 button 0 pos 271,129 trace:cursor:X11DRV_MotionNotify hwnd 0x30056/4000005 pos 244,108 is_hint 0 serial 516 warn:cursor:get_icon_ptr icon handle 0x201b4 from other process trace:cursor:X11DRV_MotionNotify hwnd 0x30056/4000005 pos 238,92 is_hint 0 serial 516
.... .... ....
http://bugs.winehq.org/show_bug.cgi?id=30242
--- Comment #6 from simonalsa simonalsa@gmail.com 2012-03-23 14:04:23 CDT --- (In reply to comment #1)
Can you try running your application without virtual desktop? It does not implement full featured window manager and some things might not work properly.
Hi Vitaliy Margolen
after replicate the same steps without wine desktop mode the lost of focus is still here...
I have added more info to the case.
Many thanks for your help
https://bugs.winehq.org/show_bug.cgi?id=30242
--- Comment #7 from Austin English austinenglish@gmail.com --- This is your friendly reminder that there has been no bug activity for 2 years. Is this still an issue in current (1.7.16 or newer) wine?
https://bugs.winehq.org/show_bug.cgi?id=30242
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |ABANDONED
--- Comment #8 from Austin English austinenglish@gmail.com --- (In reply to Austin English from comment #7)
This is your friendly reminder that there has been no bug activity for 2 years. Is this still an issue in current (1.7.16 or newer) wine?
Abandoned.
https://bugs.winehq.org/show_bug.cgi?id=30242
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #9 from Austin English austinenglish@gmail.com --- Closing.