Skip to content
Snippets Groups Projects
  1. Aug 27, 2018
    • Keith Packard's avatar
      composite: 0.5. Window scaling and events · 769e6f43
      Keith Packard authored
      
      Output scaling:
      
       * Changes to mivaltree to reset window clip to owner window size
         instead of server window size when compositing
      
       * Allocate owner window size pixmap for composite pixmap
      
       * Paint scaled image for automatic compositing
      
       * Report owner window size in events to the window owner.
      
       * Scale exposure damage in compSetRedirectBorderClip from
         current size to owner size to make sure the correct parts of
         the window are repainted.
      
      Input scaling:
      
       * Change miSpriteTrace to scale cursor coordinates when transiting an
         owner-sized window. Do all computations in double to handle
         multiple such transitions without losing bits
      
       * Add ScaleRootCoordinate in events.c. This function takes a window
         and a root x/y and walks up the tree scaling each time there is an
         owner size set.
      
       * Use ScaleRootCoordinate in FixUpEventFromWindow.
      
       * Wrap event delivery in DeliverEvent in new
         SaveEventRootCoord/RestoreEventRootCoord functions so that
         different windows receiving the same event will all receive the
         correct coordinates.
      
      Composite events:
      
       * Deliver CompositePixmapNotify events from compSetPixmapVisitWindow
         so that applications will be notified each time the pixmap changes.
      
       * Deliver CompositeOwnerWindowSizeNotify events when owner window
         size is set.
      
      Signed-off-by: default avatarKeith Packard <keithp@keithp.com>
      769e6f43
  2. Apr 05, 2018
    • Adam Jackson's avatar
      mi: Hush an almost certainly bogus warning · 57e87230
      Adam Jackson authored
      
      In file included from ../mi/miexpose.c:83:
      ../mi/miexpose.c: In function ‘miHandleExposures’:
      ../include/regionstr.h:174:22: warning: ‘expBox.y2’ may be used uninitialized in this function [-Wmaybe-uninitialized]
           (_pReg)->extents = *(_pBox);
           ~~~~~~~~~~~~~~~~~^~~~~~~~~~
      ../mi/miexpose.c:139:12: note: ‘expBox.y2’ was declared here
           BoxRec expBox;
                  ^~~~~~
      
      etc. It's initialized if (extents), and then only read if (extents),
      but gcc doesn't seem to figure that out. Whatever, bzero it to be
      explicit.
      
      Signed-off-by: Adam Jackson's avatarAdam Jackson <ajax@redhat.com>
      Acked-by: default avatarKeith Packard <keithp@keithp.com>
      57e87230
  3. Apr 02, 2018
  4. Feb 21, 2018
  5. Feb 19, 2018
  6. Feb 14, 2018
  7. Jan 22, 2018
    • Adam Jackson's avatar
      miinitext: General cleanup (v2) · c2b2f06a
      Adam Jackson authored
      
      This really just wants to be the list of disable booleans and
      initialization functions, and nothing else. Stop including the protocol
      headers from extinit.h, remove a stray mention of xgl, and move an
      XInput declaration to a better place.
      
      v2: A bunch of drivers assume they'll get the DPMS tokens implicitly,
      so add it to globals.h.
      
      Signed-off-by: Adam Jackson's avatarAdam Jackson <ajax@redhat.com>
      Reviewed-by: default avatarEric Anholt <eric@anholt.net>
      c2b2f06a
  8. Nov 06, 2017
  9. May 18, 2017
  10. Apr 26, 2017
    • Emma Anholt's avatar
      Add a Meson build system alongside autotools. · 1549e303
      Emma Anholt authored
      
      This is a work in progress that builds Xvfb, Xephyr, Xwayland, Xnest,
      and Xdmx so far.  The outline of Xquartz/Xwin support is in tree, but
      hasn't been built yet.  The unit tests are also not done.
      
      The intent is to build this as a complete replacement for the
      autotools system, then eventually replace autotools.  meson is faster
      to generate the build, faster to run the bulid, shorter to write the
      build files in, and less error-prone than autotools.
      
      v2: Fix indentation nits, move version declaration to project(), use
          existing meson_options for version-config.h's vendor name/web.
      
      Signed-off-by: default avatarEric Anholt <eric@anholt.net>
      Acked-by: default avatarKeith Packard <keithp@keithp.com>
      Reviewed-by: default avatarPeter Hutterer <peter.hutterer@who-t.net>
      1549e303
  11. Mar 23, 2017
  12. Mar 17, 2017
  13. Mar 02, 2017
  14. Feb 16, 2017
  15. Sep 22, 2016
  16. Aug 12, 2016
  17. Jul 18, 2016
  18. Jun 08, 2016
  19. May 26, 2016
    • Keith Packard's avatar
      mi: Grow event queue while reading events · e2df803f
      Keith Packard authored
      
      Now that events are read at normal process time, we can use malloc to
      grow the event queue instead of discarding events.
      
      Signed-off-by: default avatarKeith Packard <keithp@keithp.com>
      Reviewed-by: default avatarPeter Hutterer <peter.hutterer@who-t.net>
      e2df803f
    • Keith Packard's avatar
      Create a threaded mechanism for input [v7] · 30ac7567
      Keith Packard authored
      
      The current SIGIO signal handler method, used at generation of input events,
      has a bunch of oddities. This patch introduces an alternative way using a
      thread, which is used to select() all input device file descriptors.
      
      A mutex was used to control the access to input structures by the main and input
      threads. Two pipes to emit alert events (such hotplug ones) and guarantee the
      proper communication between them was also used.
      
      Co-authored-by: default avatarFernando Carrijo <fcarrijo@freedesktop.org>
      Signed-off-by: default avatarTiago Vignatti <tiago.vignatti@nokia.com>
      
      v2: Fix non-Xorg link. Enable where supported by default.
      
          This also splits out the actual enabling of input threads to
          DDX-specific patches which follow
      
      v3: Make the input lock recursive
      
      v4: Use regular RECURSIVE_MUTEXes instead of rolling our own
          Respect the --disable-input-thread configuration option by
          providing stubs that expose the same API/ABI.
      
          Respond to style comments from Peter Hutterer.
      
      v5: use __func__ in inputthread debug and error mesages.
      
          Respond to style comments from Peter Hutterer.
      
      v6: use AX_PTHREAD instead of inlining pthread tests.
      
          Suggested by Emil Velikov <emil.l.velikov@gmail.com>
      
      v7: Use pthread_sigmask instead of sigprocmask when using threads
      
          Suggested by Adam Jackson <ajax@redhat.com>
      
      Signed-off-by: Adam Jackson's avatarAdam Jackson <ajax@redhat.com>
      Signed-off-by: default avatarKeith Packard <keithp@keithp.com>
      Reviewed-by: Adam Jackson's avatarAdam Jackson <ajax@redhat.com>
      30ac7567
    • 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: default avatarKeith Packard <keithp@keithp.com>
      Reviewed-by: default avatarPeter Hutterer <peter.hutterer@who-t.net>
      6a5a4e60
  20. May 25, 2016
  21. Oct 19, 2015
  22. Sep 23, 2015
  23. Aug 18, 2015
  24. Jul 08, 2015
  25. Jul 06, 2015
  26. Jun 30, 2015
Loading