Commit Graph

45 Commits

Author SHA1 Message Date
Kristian Høgsberg
151ca457b4 shm: Drop non-premul format, use less ambiguous ARGB8888 naming convention
This also matches the new wl_drm format names.
2012-01-11 14:19:54 -05:00
Kristian Høgsberg
b2e619c740 Add new wl_shell popup surface type 2012-01-06 11:40:02 -05:00
Tiago Vignatti
1f58d155da protocol: update touch_down with focus surface
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
2011-12-21 13:57:27 -05:00
Kristian Høgsberg
e68529b52f protocol: Add a bit of documentation 2011-12-19 13:15:06 -05:00
Pekka Paalanen
42eed3235a protocol: introduce wl_shell_surface
Requests like 'move' and 'set_toplevel' are really methods of a surface,
not methods of a global shell object. Move all these methods to a new
interface, wl_shell_surface.

The global object wl_shell will contain only 'get_shell_surface'
request, which creates and associates a wl_shell_surface object to a
given wl_surface object.

This will also give the shell plugin (if you look at the demo
compositor) means to store per-surface private data in a natural way.

Due to a limitation in delete_id event handling on client side, the
client must destroy its wl_shell_surface object before destroying the
wl_surface object. Otherwise it may just leak an id.

Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
2011-11-29 14:46:49 +02:00
Kristian Høgsberg
eae3bcb4cc New drag and drop / selection protocol
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.
2011-11-23 16:05:58 -05:00
Kristian Høgsberg
3a1e6df39a Add display event to acknowledge ID deletion
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.
2011-11-17 17:37:52 -05:00
Kristian Høgsberg
bfe54cbe37 protocol: Change global_remove arg to be 'name' insteadl of 'id'
Consistent with global args.
2011-10-24 16:05:04 -04:00
Kristian Høgsberg
d63884b0c7 scanner: Catch more invalid attribute combinations for arg
Spotted by Jakob Bornecrantz.
2011-10-24 16:04:09 -04:00
Kristian Høgsberg
c640571c00 Remove the wl_visual interface
The visual interface was meant to be a generic mechanism for
specifying the content of a buffer.  It goes back to before we had the
buffer factory interfaces (like wl_drm and wl_shm) and we wanted to
keep it open-ended enough that yuv, png or even svg buffer or so would
be possible.

Now that we have the buffer abstraction, we can add different buffer
types by introducing new interfaces that create buffers.  It only
makes sense to leave it to those interfaces to specify the contents of
the buffers.

For wl_shm, this means that we now just specify the pixel format using
an enum.  For EGL buffers, the exact pixel formats are controlled by
the implementation (part of wl_drm and similar), and from the client
point of view, everything is controlled using EGLConfigs.
2011-08-31 18:34:21 -04:00
Kristian Høgsberg
4a39081c1d Remove range protocol 2011-08-27 12:06:11 -04:00
Kristian Høgsberg
cc6fd94d6a Always allocate a new wl_resource when binding an object
Previously we would bind some resources into multiple client hash tables.
2011-08-27 12:06:11 -04:00
Kristian Høgsberg
e908893080 Bind globals to client provided object IDs 2011-08-27 12:06:11 -04:00
Kristian Høgsberg
0af17ed98c Use a callback object instead of ad-hoc lists for sync and frame events
So obvious in retrospect.  The object system can do all the work for us
and keep track of pending calls as regular objects and we don't need to
abuse the resource system to get them cleaned up on client exit.  We
don't need the custom key management or (broken) lookup, we just sue
object IDs.  And last but not least, anybody can receive the callback,
not just display listeners.
2011-08-27 12:06:10 -04:00
Tiago Vignatti
7a291117e7 protocol: Delete screenshooter.xml
The protocol interface is on compositor's side now.

Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
2011-07-26 08:21:49 -07:00
Kristian Høgsberg
986703ac73 scanner: Take copyright notice from xml file 2011-07-25 18:14:20 -07:00
Tiago Vignatti
068ba750ca protocol: fix key event and related comments 2011-07-15 15:04:50 -04:00
Kristian Høgsberg
98da0a7b98 protocol: Fix type of visual arg in token_visual event 2011-07-15 15:04:50 -04:00
Kristian Høgsberg
671a62cb96 protocol: Make id arg of display.global event be just a uint
Global names are different from object IDs.
2011-07-11 11:15:00 -04:00
Laszlo Agocs
aa7bbb210b Add touch events to protocol. 2011-06-29 12:51:39 -04:00
Kristian Høgsberg
7dc36984af Merge remote-tracking branch 'bnf/buffer.release' 2011-06-21 12:15:31 -04:00
Benjamin Franzke
2fcebfed95 Add buffer.release event 2011-06-21 17:42:55 +02:00
Kristian Høgsberg
bfea3d6bef Add more protocol for communicating screen geometry 2011-06-21 11:24:27 -04:00
Laszlo Agocs
aae9f214e5 Add wl_display_remove_global.
Change 4453ba084a disallows using
post_global with objects not on the global list. Therefore selection
and drag offers have to be added to the global list from now on.
However these may often get replaced by a newer object and thus need a
way to remove a global from the global list.
2011-06-20 11:56:22 -04:00
Kristian Høgsberg
a2db57517b Move map functionality into shell
Initial surface.attach makes the surface visible and clients
can set the surface type using shell.set_transient etc or
other interfaces prior to that.
2011-06-18 08:17:40 -04:00
Kristian Høgsberg
4bde293ff8 Add event to associate visuals with a pixel format token 2011-05-12 21:29:22 -04:00
Kristian Høgsberg
8834a0f22f Define shm specific errors
We stop abusing the wl_display error codes for shm purposes.
2011-05-11 13:06:51 -04:00
Kristian Høgsberg
1db0525572 Unify error events
Consolidate the different error events into one.  This event will also be
usable for other interaces.
2011-05-11 11:02:34 -04:00
Benjamin Franzke
0bf5285b44 Add buffer.damage request to the protocol
Thus remove the server-side used vfunc buffer::damage.
2011-04-22 10:11:12 -04:00
Kristian Høgsberg
c5ec478d46 scanner: Don't hardcode the wl_ prefix in the code generator 2011-04-20 17:19:52 -04:00
Kristian Høgsberg
320a5634cf Introduce display.bind to request events from a global 2011-04-18 10:24:45 -04:00
Benjamin Franzke
94fcdde0e2 Extent frame event to be surface dependent 2011-03-16 23:01:39 +01:00
Benjamin Franzke
b038d93abf protocol/wayland: Drop drm interface (move into mesa) 2011-02-28 11:20:56 +01:00
Kristian Høgsberg
0ce245761c Add initial basic support for fullscreen surfaces 2011-01-28 15:18:33 -05:00
Kristian Høgsberg
027931bd33 Define the shell resize enumeration in the xml spec 2011-01-21 21:57:55 -05:00
Kristian Høgsberg
8dc378ff76 Add new surface.map_transient() request to map a surface relative to another 2011-01-21 18:02:24 -05:00
Kristian Høgsberg
ae6c8a6d73 First attempt at selection support 2011-01-19 14:25:12 -05:00
Kristian Høgsberg
82da52b15b Update surface.attach and change surface.map to surface.map_toplevel
The new map_toplevel() request no longer specifies a position and takes
the size from the attached buffer.  The attach request now takes a
position relative to the top-left corner of the old buffer to let
clients specify the relative position of the new buffer.
2010-12-17 09:53:12 -05:00
Kristian Høgsberg
67f367f329 Document the shell.configure event a bit 2010-12-09 11:06:46 -05:00
Kristian Høgsberg
f8fc08f771 Add origin information to output.geometry event 2010-12-01 20:10:10 -05:00
Kristian Høgsberg
d44bc8b8ee Add reject round trip to dnd protocol
This lets a drag target reject a drop.
2010-11-30 15:10:26 -05:00
Kristian Høgsberg
c1ad1f9c9b Consolidate 'sync' and 'frame' events into just one 'key' event 2010-11-29 17:04:21 -05:00
Yuval Fledel
4ee7138609 Describe the protocol using inline XML comments
Signed-off-by: Yuval Fledel <yuvalfl@gmail.com>
2010-11-29 15:54:51 -05:00
Yuval Fledel
d1c4310715 xml tag should close, or some parsers fail 2010-11-22 14:30:53 -05:00
Kristian Høgsberg
f0152daad7 Use automake 2010-10-12 18:00:16 -04:00