Skip to content
  • Kristian Høgsberg's avatar
    input: Don't send modifiers if client doesn't have a pointer resource · cb406f1a
    Kristian Høgsberg authored
    This fixes an uninitialized serial error, were we could send out the
    modifier event even if the client didn't have a pointer resource.  We
    send out the modifier event to let clients know the modifer mask when
    they receive a pointer button event.  Thus, if the client doesn't have
    a pointer we don't need to send the modifier event.
    
    Additionally we would send out the modifier event with an
    uninitialized serial number.
    
    Finally, this commit restores the order of sending the modifier event
    before the enter, like it used to be.  Not likely to be an issue,
    since the client will always receive the modifier event before any
    button event, but it's a little nicer to give the client the modifier
    events before it receives any pointer events.
    cb406f1a