• Show log

    Commit

  • Hash : 59d34bc3
    Author : Sam Lantinga
    Date : 2015-06-15T23:44:08

    Fixed bug 3015 - grab mouse inconsistent state
    
    Martin Gerhardy
    
    Not sure - but I think there might be a logic flaw in SDL_SetWindowGrab.
    
    The problem here is that this modifies the window flags and e.g. sets
    SDL_WINDOW_INPUT_GRABBED - but the _this->grabbed_window pointer is not
    yet set.
    
    Then in SDL_UpdateWindowGrab the _this->grabbed_window pointer is only
    set if the function pointer _this->SetWindowGrab is not NULL. But if
    this is NULL, the _this->grabbed_window pointer is never set, but every
    future call to any of the grab functions include an assert for:
    SDL_assert(!_this->grabbed_window || ((_this->grabbed_window->flags &
    SDL_WINDOW_INPUT_GRABBED) != 0));
    
    That means the first call works, the second always fails and triggers
    the assert.
    

  • Properties

  • Git HTTP https://git.kmx.io/kc3-lang/SDL.git
    Git SSH git@git.kmx.io:kc3-lang/SDL.git
    Public access ? public
    Description

    Fork of https://github.com/libsdl-org/SDL

    Users
    thodg_m kc3_lang_org thodg_w thodg_l www_kmx_io thodg
    Tags