Module: wine Branch: master Commit: 57fc5e7fcc0168c63622f307fe46fc21a60f418d URL: http://source.winehq.org/git/wine.git/?a=commit;h=57fc5e7fcc0168c63622f307fe...
Author: Alexandre Julliard julliard@winehq.org Date: Thu May 5 13:35:55 2011 +0200
winex11: Fix check for desktop process in non-desktop mode.
---
dlls/winex11.drv/mouse.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/winex11.drv/mouse.c b/dlls/winex11.drv/mouse.c index 96d93e5..fdc92ab 100644 --- a/dlls/winex11.drv/mouse.c +++ b/dlls/winex11.drv/mouse.c @@ -1207,7 +1207,8 @@ BOOL CDECL X11DRV_ClipCursor( LPCRECT clip ) return TRUE; }
- if (X11DRV_get_win_data( GetDesktopWindow() )) return TRUE; /* don't clip in the desktop process */ + if (GetWindowThreadProcessId( GetDesktopWindow(), NULL ) == GetCurrentThreadId()) + return TRUE; /* don't clip in the desktop process */
/* we are clipping if the clip rectangle is smaller than the screen */ if (grab_pointer && (clip->left > virtual_screen_rect.left ||