1. 26 May, 2016 2 commits
    • Keith Packard's avatar
      dix: Reallocate touchpoint buffer at input event time [v2] · f84703b5
      Keith Packard authored
      Now that input is threaded, malloc can be used at event time to resize
      the touchpoint buffer as needed.x
      
      v2: Remove "Need to grow the queue means dropping events."
          from comment as it no longer applies. (Peter Hutterer)
      Signed-off-by: Keith Packard's avatarKeith Packard <keithp@keithp.com>
      Reviewed-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
      f84703b5
    • Keith Packard's avatar
      Remove SIGIO support for input [v5] · 6a5a4e60
      Keith Packard authored
      This removes all of the SIGIO handling support used for input
      throughout the X server, preparing the way for using threads for input
      handling instead.
      
      Places calling OsBlockSIGIO and OsReleaseSIGIO are marked with calls
      to stub functions input_lock/input_unlock so that we don't lose this
      information.
      
      xfree86 SIGIO support is reworked to use internal versions of
      OsBlockSIGIO and OsReleaseSIGIO.
      
      v2: Don't change locking order (Peter Hutterer)
      v3: Comment weird && FALSE in xf86Helper.c
          Leave errno save/restore in xf86ReadInput
          Squash with stub adding patch (Peter Hutterer)
      v4: Leave UseSIGIO config parameter so that
          existing config files don't break (Peter Hutterer)
      v5: Split a couple of independent patch bits out
          of kinput.c (Peter Hutterer)
      Signed-off-by: Keith Packard's avatarKeith Packard <keithp@keithp.com>
      Reviewed-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
      6a5a4e60
  2. 28 Aug, 2015 1 commit
  3. 21 Apr, 2015 1 commit
  4. 12 Jan, 2014 1 commit
  5. 24 Jul, 2013 1 commit
  6. 15 May, 2013 1 commit
    • Peter Hutterer's avatar
      dix: call UpdateDeviceState() for emulated TouchEndEvents · 35c2e263
      Peter Hutterer authored
      ProcessTouchEvents() calls UDS for all touch events, but if the event type
      was switched to TouchUpdate(pending end) UDS is a noop.
      
      Daniel Drake found this can cause stuck buttons if a touch grab is
      activated, rejected and the touch event is passed to a regular listener.
      This sequence causes the TouchEnd to be changed to TouchUpdate(pending end).
      
      The actual TouchEnd event is later generated by the server once it is passed
      to the next listener. UDS is never called for this event, thus the button
      remains logically down.
      
      A previous patch suggested for UDS to handle TouchUpdate events [1], however
      this would release the button when the first TouchEvent is processed, not
      when the last grab has been released (as is the case for sync pointer
      grabs). A client may thus have the grab on the device, receive a ButtonPress
      but see the button logically up in an XQueryPointer request.
      
      This patch adds a call to UDS to TouchEmitTouchEnd(). The device state must
      be updated once a TouchEnd event was sent to the last grabbing listener and
      the number of grabs on the touchpoint is 0.
      
      [1] http://patchwork.freedesktop.org/patch/13464/Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
      35c2e263
  7. 10 May, 2013 9 commits
  8. 15 Apr, 2013 1 commit
  9. 25 Mar, 2013 1 commit
  10. 09 Jan, 2013 2 commits
  11. 12 Dec, 2012 2 commits
  12. 20 Nov, 2012 1 commit
  13. 30 Oct, 2012 1 commit
  14. 19 Oct, 2012 1 commit
  15. 04 Jul, 2012 2 commits
  16. 03 Jul, 2012 1 commit
  17. 07 Jun, 2012 2 commits
  18. 01 May, 2012 1 commit
  19. 19 Apr, 2012 3 commits
  20. 18 Apr, 2012 3 commits
  21. 22 Mar, 2012 1 commit
  22. 21 Mar, 2012 1 commit
    • Keith Packard's avatar
      Introduce a consistent coding style · 9838b703
      Keith Packard authored
      This is strictly the application of the script 'x-indent-all.sh'
      from util/modular. Compared to the patch that Daniel posted in
      January, I've added a few indent flags:
      
      	-bap
      	-psl
      	-T PrivatePtr
      	-T pmWait
      	-T _XFUNCPROTOBEGIN
      	-T _XFUNCPROTOEND
      	-T _X_EXPORT
      
      The typedefs were needed to make the output of sdksyms.sh match the
      previous output, otherwise, the code is formatted badly enough that
      sdksyms.sh generates incorrect output.
      
      The generated code was compared with the previous version and found to
      be essentially identical -- "assert" line numbers and BUILD_TIME were
      the only differences found.
      
      The comparison was done with this script:
      
      dir1=$1
      dir2=$2
      
      for dir in $dir1 $dir2; do
      	(cd $dir && find . -name '*.o' | while read file; do
      		dir=`dirname $file`
      		base=`basename $file .o`
      		dump=$dir/$base.dump
      		objdump -d $file > $dump
      	done)
      done
      
      find $dir1 -name '*.dump' | while read dump; do
      	otherdump=`echo $dump | sed "s;$dir1;$dir2;"`
      	diff -u $dump $otherdump
      done
      Signed-off-by: Keith Packard's avatarKeith Packard <keithp@keithp.com>
      Acked-by: Daniel Stone's avatarDaniel Stone <daniel@fooishbar.org>
      Acked-by: Alan Coopersmith's avatarAlan Coopersmith <alan.coopersmith@oracle.com>
      9838b703
  23. 08 Feb, 2012 1 commit