• Sam Lantinga's avatar
    Fixed bug #719 · 5cbd26fc
    Sam Lantinga authored
     Mike Blaguszewski      2009-03-23 13:32:22 PDT
    
    Patch to 1.2 HEAD that fixes the issue
    
    Fixes bug in SDL 1.2.13 where clicking on an app's title bar to activate the
    app, when cursor capturing is enabled, will cause the window to jump. This is
    because SDL's handler for activate events calls a low-level Quartz function to
    move the cursor. Calling this when the mouse is down in the title bar confuses
    the WindowServer into thinking the title bar has been dragged. The patch defers
    processing of activate events in this case.
    
    The bottom line is that CGWarpMouseCursorPosition() is not safe to call when
    the mouse in down in a window's title bar.
    
    --HG--
    branch : SDL-1.2
    extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%403890
    5cbd26fc
SDL_QuartzWindow.h 1.71 KB