• Show log

    Commit

  • Hash : 2092a883
    Author : Ryan C. Gordon
    Date : 2017-03-31T23:43:53

    android: fix wrong events when locking device in landscape (thanks, Joshua!).
    
    "Using an application in portrait orientation, turning off the device would
    dispatch SDL_APP_WILLENTERBACKGROUND, then SDL_APP_DIDENTERBACKGROUND then
    lock the screen.
    
    However, rotating the application the application to landscape, then turning
    off the device would incorrectly dispatch SDL_APP_WILLENTERBACKGROUND,
    SDL_APP_WILLENTERBACKGROUND, SDL_APP_WILLENTERFOREGROUND and then
    SDL_APP_DIDENTERFOREGROUND before locking the screen. You can imagine how
    this created trouble :)
    
    It appears this occurs because (on this application) turning off a device
    when in landscape is triggering a resize. The resize logic in SDLActivity
    triggers a resume.
    
    This patch has resolved the issue on my device:
    
    It prevents the dispatch of (improper) FOREGROUND events when locking
    the device, but we get still events when the device is turned back on
    and unlocked."
    

  • 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_w kc3_lang_org thodg_l thodg_m www_kmx_io thodg
    Tags