• J
    libobs: Fix mouse button hotkeys on linux · 3a5d7b11
    jp9000 提交于
    The screen index returned from XDefaultScreen is 0-based, and we were
    decrementing it before the check to see if it had reached 0 rather than
    after, so in the default_screen function it would always end up getting
    either the wrong screen or no screen.
    
    When xcb_query_pointer and xcb_query_pointer_reply was called with no
    valid screen, it would fail with an error, thus making it so that the
    mouse buttons could not be properly captured as hotkeys.
    3a5d7b11
obs-nix.c 27.9 KB