1. 30 Jan, 2020 1 commit
  2. 20 Feb, 2018 1 commit
  3. 18 Dec, 2017 2 commits
  4. 12 Dec, 2017 2 commits
  5. 29 Jun, 2016 2 commits
    • Pekka Paalanen's avatar
      tests: event-test to use create_shm_buffer_a8r8g8b8() · 7789acd1
      Pekka Paalanen authored
      This removes the uses of create_shm_buffer() from this test.
      Signed-off-by: Pekka Paalanen's avatarPekka Paalanen <pekka.paalanen@collabora.co.uk>
      Reviewed-by: Daniel Stone's avatarDaniel Stone <daniels@collabora.com>
    • Pekka Paalanen's avatar
      tests: introduce struct buffer for client-helper · 924cd948
      Pekka Paalanen authored
      We are growing more tests that need to handle buffers, both just images
      and wl_buffers. Particularly the screenshooting facility needs these.
      Currently everything is in struct surface, which contains more than we
      need. It is a bit messy.
      Create a new struct buffer to encapsulate the image representation, the
      wl_buffer, and enough information to tear it all down (munmap) so we
      don't have to leak everything. Some tests might start doing things in
      loops, and leaking would accumulate.
      Instead of inventing our own image representation, use pixman_image_t.
      It is a well-tested library worth using, and we already rely on it in
      other places.
      This makes the tests depend on Pixman, which requires the fix for
      building buffer-count, which would otherwise not find pixman.h.
      The new create_shm_buffer_a8r8g8b8() creates an image with an explicit
      format, and pixman_image_t keeps track of it. And stride and size and
      data. This implementation is still a little hacky due to calling
      A very new thing is buffer_destroy(). Previously we didn't really free
      any buffers. It is not a problem when the process will exit soon anyway,
      but it may become a problem if tests start iterating things.
      Manual memset() on a image is converted to a pixman action, just to show
      how to do it properly with pixman.
      Stride and pixel format assumptions still linger all around, but those
      are for another patch.
      Signed-off-by: Pekka Paalanen's avatarPekka Paalanen <pekka.paalanen@collabora.co.uk>
      Reviewed-by: Daniel Stone's avatarDaniel Stone <daniels@collabora.com>
  6. 15 Jun, 2015 1 commit
  7. 02 Apr, 2015 1 commit
  8. 24 Feb, 2015 1 commit
  9. 28 Nov, 2014 1 commit
  10. 08 Feb, 2013 1 commit
  11. 12 Dec, 2012 2 commits
    • Pekka Paalanen's avatar
      tests: check wl_display_roundtrip() for errors · f2aa64f1
      Pekka Paalanen authored
      Add a macro that wraps wl_display_roundtrip() and check for errors. It
      is a macro, so that the assert would show the relevant file and line
      This will also catch protocol errors, that would go unnoticed otherwise.
      All roundtrips in tests are replaced with the check.
      Signed-off-by: Pekka Paalanen's avatarPekka Paalanen <ppaalanen@gmail.com>
    • Kristian Høgsberg's avatar
      tests: Drop yield() helper function · ba0cfdd2
      Kristian Høgsberg authored
      Remaining use case was when we move the pointer.  This doesn't change
      geometry so we can just use a wl_display_roundtrip() to make sure
      we get the request to the server and receive the resulting events.
  12. 11 Dec, 2012 1 commit
  13. 04 Oct, 2012 1 commit
  14. 14 Sep, 2012 1 commit
    • Ander Conselvan de Oliveira's avatar
      compositor: Always assign an output when updating a surface transform · 231ba171
      Ander Conselvan de Oliveira authored
      Also make all the callers of weston_surface_assign_output() update the
      transform instead. This makes sure that when the surface is assigned an
      output its bouding box is valid.
      This fixes a bug where a newly created surface would have a NULL output
      assigned. This would cause weston_surface_schedule_repaint() to not
      schedule a repaint, preventing the surface to be shown until something
      else caused a repaint.
  15. 29 Aug, 2012 1 commit
  16. 14 Aug, 2012 1 commit
  17. 16 May, 2012 1 commit
    • Daniel Stone's avatar
      Convert wl_input_device to wl_seat (and friends) · 37816df6
      Daniel Stone authored
      wl_input_device has been both renamed and split.  wl_seat is now a
      virtual object representing a group of logically related input devices
      with related focus.
      It now only generates one event: to let clients know that it has new
      capabilities.  It takes requests which hand back objects for the
      wl_pointer, wl_keyboard and wl_touch interfaces it exposes which all
      provide the old input interface, just under different names.
      This commit tracks these changes in weston and the clients, as well as
      similar renames (e.g. weston_input_device -> weston_seat).  Some other
      changes were necessary, e.g. renaming the name for the visible mouse
      sprite from 'pointer' to 'cursor' so as to not conflict.
      For simplicity, every seat is always exposed with all three interfaces,
      although this will change as time goes on.
      Signed-off-by: Daniel Stone's avatarDaniel Stone <daniel@fooishbar.org>
  18. 15 May, 2012 1 commit
  19. 27 Apr, 2012 1 commit
    • Kristian Høgsberg's avatar
      tests: Add event-test, which tests for a few incoming events · 3018b443
      Kristian Høgsberg authored
      We check that we get surface.enter_output and move the pointer into
      the window and make sure we get input_device.pointer_enter with
      the right coordinates.
      There's a lot of code for a very simple test here, so we need to
      figure out how to reuse most of the event handling and such.  It's also
      not clear that a custom, text based protocol is practical here, we might
      just use a wayland extension after all.
  20. 26 Apr, 2012 1 commit
  21. 17 Apr, 2012 1 commit
    • Pekka Paalanen's avatar
      compositor: move libudev.h to evdev.h · 9bc1a4ef
      Pekka Paalanen authored
      Compositor core does not do anything with udev, so the header is not
      needed there. Move the #include into evdev.h, from where it gets used by
      compositor-drm.c, too.
      Also fix the fallout:
      tty.c: In function 'tty_create':
      tty.c:143:2: warning: implicit declaration of function 'fstat'
      Signed-off-by: Pekka Paalanen's avatarPekka Paalanen <ppaalanen@gmail.com>
  22. 09 Apr, 2012 1 commit
  23. 03 Jan, 2012 1 commit
    • Kristian Høgsberg's avatar
      Rename wayland-compositor to weston · 8334bc1e
      Kristian Høgsberg authored
      This rename addresses a few problems around the split between core
      Wayland and the wayland-demos repository.
      1) Initially, we had one big repository with protocol code, sample
      compositor and sample clients.  We split that repository to make it
      possible to implement the protocol without pulling in the sample/demo
      code.  At this point, the compositor is more than just a "demo" and
      wayland-demos doesn't send the right message.  The sample compositor
      is a useful, self-contained project in it's own right, and we want to
      move away from the "demos" label.
      2) Another problem is that the wayland-demos compositor is often
      called "the wayland compsitor", but it's really just one possible
      compositor.  Existing X11 compositors are expected to add Wayland
      support and then gradually phase out/modularize the X11 support, for
      example.  Conversely, it's hard to talk about the wayland-demos
      compositor specifically as opposed to, eg, the wayland protocol or a
      wayland compositor in general.
      We are also renaming the repo to weston, and the compositor
      subdirectory to src/, to emphasize that the main "output" is the
  24. 18 Dec, 2011 1 commit