1. 06 Jan, 2012 4 commits
    • Kristian Høgsberg's avatar
      Add new wl_shell popup surface type · b2e619c7
      Kristian Høgsberg authored
      b2e619c7
    • Kristian Høgsberg's avatar
      b6b3d07c
    • Kristian Høgsberg's avatar
      dbb3ba72
    • Kristian Høgsberg's avatar
      New grab API · 5ffe9f47
      Kristian Høgsberg authored
      This commit changes the way struct wl_grab works in a couple of ways:
      
       - The grab itself now decides when it ends instead of hardcoding button
         up as the terminating event.  We remove the end vfunc since a grab now
         always know when it ends and can just clean up at that point.
      
       - We add a new focus vfunc that is invoked every time the pointer enters
         a new surface, regardless of any grabs.  The callback receives the
         surface and the surface-relative pointer coordinates.  The callback lets
         a grab send enter/leave events and change the grab focus.
      
       - The grab has a focus surface, wich determines the coordinate space
         for the motion callback coordinates.
      
       - The input device always tracks the current surface, ie the surface that
         currently contains the pointer, and coordinates relative to that surface.
      
      With these changes, we will be able to pull the core input event delivery
      and the drag and drop grab into the core wayland-server library.
      5ffe9f47
  2. 04 Jan, 2012 1 commit
  3. 03 Jan, 2012 2 commits
  4. 29 Dec, 2011 1 commit
  5. 27 Dec, 2011 1 commit
  6. 22 Dec, 2011 3 commits
  7. 21 Dec, 2011 1 commit
  8. 19 Dec, 2011 1 commit
  9. 17 Dec, 2011 2 commits
  10. 14 Dec, 2011 2 commits
  11. 13 Dec, 2011 1 commit
  12. 05 Dec, 2011 1 commit
    • Pekka Paalanen's avatar
      client: unset WAYLAND_SOCKET env variable · 58bb064a
      Pekka Paalanen authored
      
      
      WAYLAND_SOCKET contains a file descriptor that is an open connection to
      a Wayland server. It is private to us, and makes no sense to relay the
      same value (or any value) to our child processes.
      
      Unset the environment variable to prevent it from being accidentally
      relayed to other processes.
      Signed-off-by: Pekka Paalanen's avatarPekka Paalanen <ppaalanen@gmail.com>
      58bb064a
  13. 29 Nov, 2011 5 commits
  14. 23 Nov, 2011 2 commits
    • Kristian Høgsberg's avatar
      New drag and drop / selection protocol · eae3bcb4
      Kristian Høgsberg authored
      This commit brings a big change to the DND and copy/paste interfaces.
      Most importantly the functionality is now independent of wl_shell.
      The wl_shell interface is intended for desktop style UI interaction and
      an optional and experimental interface.
      
      The new interface also allows receiving the DND data multiple times or
      multiple times during the drag, and the mechanism for offering and receiving
      data is now shared between DND and selections.
      eae3bcb4
    • Kristian Høgsberg's avatar
      server: Stop special casing the compositor · 0b7d1e86
      Kristian Høgsberg authored
      wl_compositor_init() was just adding the global and providing a helper
      bind function.  Not useful enough to warrent API.
      0b7d1e86
  15. 22 Nov, 2011 2 commits
  16. 19 Nov, 2011 1 commit
  17. 18 Nov, 2011 2 commits
  18. 17 Nov, 2011 2 commits
    • Kristian Høgsberg's avatar
      Introduce wl_resource_queue_event() for sending events later · 4abc56bd
      Kristian Høgsberg authored
      Some events, such as the display.delete_id, aren't very urgent and we
      would like to not always send them immdiately and cause an unnecessary
      context switch.  The wl_resource_queue_event() function will place the
      event in the connection output buffer but not request the main loop to
      poll for writable.  The effect is that the event will just sit in the
      output buffer until a more important event comes around and requires
      flushing.
      4abc56bd
    • Kristian Høgsberg's avatar
      Add display event to acknowledge ID deletion · 3a1e6df3
      Kristian Høgsberg authored
      We need to make sure the client doesn't reuse an object ID until the
      server has seen the destroy request.  When a client destroys an ID
      the server will now respond with the display.delete_id event, which lets
      the client block reuse until it receives the event.
      3a1e6df3
  19. 15 Nov, 2011 2 commits
    • Kristian Høgsberg's avatar
      util: Add wl_list_insert_list() · 51f50b8c
      Kristian Høgsberg authored
      51f50b8c
    • Andrea Canciani's avatar
      hash: Improve double hashing · 3175e91e
      Andrea Canciani authored
      Instead of artificially introducing collisions in the step value by
      replacing 0 with 1 (which causes the value 1 to have twice the
      frequency of any other value), the step value can simply be computed
      as an uniformly distributed value in the range [1, rehash], extremes
      included.
      
      This is safe because any step value smaller than the hash modulus is
      co-prime with it, hence induces an orbit which includes every integer
      in [0, size - 1].
      3175e91e
  20. 31 Oct, 2011 2 commits
  21. 29 Oct, 2011 1 commit
    • Kristian Høgsberg's avatar
      event-loop: Fix idle handler dispatch corner case · f86338d6
      Kristian Høgsberg authored
      When the last idle handler queues another idle handler, we fail to
      dispatch that last handler.  The wl_list_for_each_safe loop looks up
      the next pointer before running the handler, and at that point it points
      to the head of the list and the loop terminates.
      
      Instead, just loop until the list is empty.
      f86338d6
  22. 24 Oct, 2011 1 commit