http://bugs.winehq.org/show_bug.cgi?id=29748
Bug #: 29748 Summary: mouse doesn't work after fullscreen window goes away Product: Wine Version: 1.4-rc1 Platform: x86 OS/Version: Linux Status: UNCONFIRMED Severity: major Priority: P2 Component: winex11.drv AssignedTo: wine-bugs@winehq.org ReportedBy: bailey937@yahoo.com Classification: Unclassified
I have an in-house windows app.
It's an image viewer that creates a full-screen window to do slideshows.
When you exit the slideshow, the mouse works fine in the windows app's window, but it doesn't work anywhere else on the linux desktop.
If you alt+tab away from the windows app, then the mouse starts working everywhere again.
I've had this problem in various environments under ubutnu, including unity 3d and lubuntu.
The weird thing is I can't reproduce it in fedora 16 under lxde. Also, I tried crossover on ubuntu (lubuntu 11.10), and it doesn't do it either.
I was able to fix it for myself by doing this in mouse.c (in wine-1.4-rc1)
BOOL clip_fullscreen_window( HWND hwnd, BOOL reset ) { struct x11drv_win_data *data; struct x11drv_thread_data *thread_data; RECT rect; DWORD style;
/* HACK? */ return FALSE;
I think what's happening is wine is making an invisible window and grabs the pointer to it, and wine doesn't get rid of this window or ungrab the pointer when it's supposed to. My app works fine without this behavior (works fine if clip_fullscreen_window() always returns false).