Skip to content
Snippets Groups Projects
  1. Oct 26, 2024
  2. Oct 10, 2024
  3. Apr 16, 2024
  4. Oct 30, 2019
    • Adam Jackson's avatar
      dix: Call SourceValidate before GetImage · 516e75db
      Adam Jackson authored and Adam Jackson's avatar Adam Jackson committed
      
      This ensures that any prep work for the drawable we're about to read
      from is already done before we call down to GetImage. This should be no
      functional change as most of the callers with a non-trivial
      SourceValidate are already wrapping GetImage and doing the equivalent
      thing, but we'll be simplifying that shortly.
      
      More importantly this ensures that if any of that prep work would
      generate events - like automatic compositing flushing rendering to a
      parent pixmap which then triggers damage - then it happens entirely
      before we start writing the GetImage reply header.
      
      Note that we do not do the same for GetSpans, but that's okay. The only
      way to get to GetSpans is through miCopyArea or miCopyPlane - where the
      callers must already call SourceValidate - or miGetImage - which this
      commit now protects with SourceValidate.
      
      Fixes: xorg/xserver#902
      Reviewed-by: default avatarMichel Dänzer <mdaenzer@redhat.com>
      516e75db
  5. Mar 15, 2017
    • Adam Jackson's avatar
      xinerama: Implement graphics exposures for window->pixmap copies (v4) · e337de2d
      Adam Jackson authored
      
      This code is using GetImage to accumulate a logical view of the window
      image (since the windows will be clipped to their containing screen),
      and then PutImage to load that back into the pixmap.  What it wasn't
      doing was constructing a region for the obscured areas of the window and
      emitting graphics exposures for same.
      
      v2: Fix coordinate translation when the source is the root window
      v3: Create sourceBox with the right coordinates initially instead of
      translating (Keith Packard)
      v4: Clamp the region to 15 bits to avoid overflow (Keith Packard)
      
      Signed-off-by: Adam Jackson's avatarAdam Jackson <ajax@redhat.com>
      e337de2d
  6. Apr 29, 2016
  7. Apr 21, 2015
  8. Nov 12, 2014
  9. Oct 23, 2014
  10. Oct 09, 2014
  11. Jan 12, 2014
  12. Jul 10, 2012
  13. Mar 21, 2012
    • Daniel Stone's avatar
      Indentation: Change '& stuff' to '&stuff' · ab3a815a
      Daniel Stone authored and Keith Packard's avatar Keith Packard committed
      
      If the typedef wasn't perfect, indent would get confused and change:
          foo = (SomePointlessTypedef *) &stuff[1];
      to:
          foo = (SomePointlessTypedef *) & stuff[1];
      
      Fix this up with a really naïve sed script, plus some hand-editing to
      change some false positives in XKB back.
      
      Signed-off-by: Daniel Stone's avatarDaniel Stone <daniel@fooishbar.org>
      ab3a815a
    • Daniel Stone's avatar
      Xinerama: Fix up obnoxiously-indented code · 58b1f739
      Daniel Stone authored and Keith Packard's avatar Keith Packard committed
      
      Comments inside of conditionals confuse indent to death.  Which is fair
      enough really.
      
      Signed-off-by: Daniel Stone's avatarDaniel Stone <daniel@fooishbar.org>
      58b1f739
    • 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: default avatarKeith Packard <keithp@keithp.com>
      Acked-by: Daniel Stone's avatarDaniel Stone <daniel@fooishbar.org>
      Acked-by: default avatarAlan Coopersmith <alan.coopersmith@oracle.com>
      9838b703
  14. Mar 10, 2011
  15. Mar 09, 2011
  16. Nov 15, 2010
  17. Jun 11, 2010
  18. Jun 10, 2010
  19. Jun 06, 2010
  20. Jun 03, 2010
  21. May 19, 2010
  22. May 14, 2010
  23. May 12, 2010
  24. Apr 27, 2010
  25. Jul 14, 2009
Loading