Ignore:
Timestamp:
Apr 15, 2001, 11:47:21 AM (24 years ago)
Author:
sandervl
Message:

SetCapture change; return immediately when new capture window is the same as old one

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/winmouse.cpp

    r4848 r5507  
    1 /* $Id: winmouse.cpp,v 1.12 2000-12-29 18:40:00 sandervl Exp $ */
     1/* $Id: winmouse.cpp,v 1.13 2001-04-15 09:47:21 sandervl Exp $ */
    22/*
    33 * Mouse handler for DINPUT
     
    125125        return hwndPrev;
    126126    }
     127    if(hwnd == hwndPrev) {
     128        dprintf(("USER32: SetCapture %x; already set to that window; ignore", hwnd));
     129        return hwndPrev;
     130    }
    127131    if(hwndPrev != NULL) {
    128132        //SvL: WinSetCapture returns an error if mouse is already captured
    129         ReleaseCapture();
     133        OSLibWinSetCapture(0);
    130134    }
    131135    rc = OSLibWinSetCapture(Win32ToOS2Handle(hwnd));
Note: See TracChangeset for help on using the changeset viewer.