~ubuntu-wine/ubuntu/lucid/wine1.2/wine1.2+winepulse

« back to all changes in this revision

Viewing changes to dlls/user32/input.c

  • Committer: Bazaar Package Importer
  • Author(s): Scott Ritchie
  • Date: 2010-02-02 11:15:03 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20100202111503-w4ayji21ei1ginjr
Tags: 1.1.37-0ubuntu1
* New upstream release
  - A number of fixes in AVI file support.
  - Several MSXML improvements.
  - A few MSI fixes.
  - Various bug fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
101
101
    }
102
102
    SERVER_END_REQ;
103
103
 
104
 
    USER_Driver->pSetCapture( hwnd, gui_flags );
105
 
 
106
 
    if (previous && previous != hwnd)
107
 
        SendMessageW( previous, WM_CAPTURECHANGED, 0, (LPARAM)hwnd );
108
 
 
109
 
    if (prev_ret) *prev_ret = previous;
 
104
    if (ret)
 
105
    {
 
106
        USER_Driver->pSetCapture( hwnd, gui_flags );
 
107
 
 
108
        if (previous && previous != hwnd)
 
109
            SendMessageW( previous, WM_CAPTURECHANGED, 0, (LPARAM)hwnd );
 
110
 
 
111
        if (prev_ret) *prev_ret = previous;
 
112
    }
110
113
    return ret;
111
114
}
112
115
 
226
229
 */
227
230
HWND WINAPI DECLSPEC_HOTPATCH SetCapture( HWND hwnd )
228
231
{
229
 
    HWND previous;
 
232
    HWND previous = 0;
230
233
 
231
234
    set_capture_window( hwnd, 0, &previous );
232
235
    return previous;
241
244
    BOOL ret = set_capture_window( 0, 0, NULL );
242
245
 
243
246
    /* Somebody may have missed some mouse movements */
244
 
    mouse_event( MOUSEEVENTF_MOVE, 0, 0, 0, 0 );
 
247
    if (ret) mouse_event( MOUSEEVENTF_MOVE, 0, 0, 0, 0 );
245
248
 
246
249
    return ret;
247
250
}