Commit graph

737 commits

Author SHA1 Message Date
Paulo Zanoni
1648109c84 connection: fix libffi usage, our functions return void
All clients were segfaulting on my machine.

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
2011-08-27 12:06:10 -04:00
Kristian Høgsberg
f6ede01b68 connection: Object ID 0 is not a valid new object ID 2011-08-16 22:33:36 -04:00
Kristian Høgsberg
efeb9e9778 event-loop: Quiet a few warnings
There's no good error recovery possible in these cases though.
2011-08-12 16:25:18 -04:00
Jørgen Lind
f2665e21ce Make expat a dependency to the scanner 2011-08-12 16:25:18 -04:00
Kristian Høgsberg
4c260db68c Rename source subdir from wayland to src 2011-08-12 16:25:14 -04:00
Kristian Høgsberg
3733157d55 Change scanner.c license to MIT 2011-08-11 14:57:36 -04:00
Kristian Høgsberg
9a606bedfd scanner: Silence warning 2011-07-28 07:47:54 -07:00
Kristian Høgsberg
eb13ae17b4 scanner: Initialize protocol.copyright to NULL 2011-07-27 05:50:41 -07: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
Kristian Høgsberg
64732b01e4 connection: Use static strings instead of sprintf and buffer overflow
Spotted by Samuel Rødal <samuel.rodal@nokia.com>
2011-07-19 10:01:46 -07:00
Kristian Høgsberg
f9b3c15145 Link to -lrt for clock_gettime() 2011-07-18 13:35:18 -04:00
Casey Dahlin
c86ba825c4 Pass object ID not pointer when sending a global announce event
When the type for the first argument of the global event changed from new_id to
uint, wl_connection_vmarshal started expecting an integer argument rather than
an object argument. As a result we were sending the client a chunk of pointer
rather than a useful global identifier.
2011-07-18 13:14:07 -04:00
Kristian Høgsberg
a8db57befa conection: Handle demarshal errors a little less dramatically 2011-07-18 13:10:49 -04:00
Casey Dahlin
728d09936f Fix segfault in client when demarshalling fails 2011-07-18 12:58:18 -04:00
Tiago Vignatti
068ba750ca protocol: fix key event and related comments 2011-07-15 15:04:50 -04:00
Tiago Vignatti
a9ef785cf8 debug: add timestamps when logging
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
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
f6bf070aee scanner: Output type info for new_id arguments 2011-07-15 15:04:45 -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
Kristian Høgsberg
ff1a06c03a scanner: map 'int' to int32_t. 2011-07-07 13:39:08 -04:00
Laszlo Agocs
aa7bbb210b Add touch events to protocol. 2011-06-29 12:51:39 -04:00
Kristian Høgsberg
40b0a6bf63 server: Add wl_client_flush()
Flush output queue up for the specified client.
2011-06-29 11:43:11 -04:00
Kristian Høgsberg
ff20a0417a event-loop: Make idle handlers work again 2011-06-23 06:43:47 -04:00
Kristian Høgsberg
b6fdded54b Update TODO 2011-06-21 16:25:28 -04:00
Kristian Høgsberg
7dc36984af Merge remote-tracking branch 'bnf/buffer.release' 2011-06-21 12:15:31 -04:00
Benjamin Franzke
4c2500c2e2 Drop wl_compoositor parameter in wl_buffer 2011-06-21 17:42:57 +02:00
Benjamin Franzke
a56c045571 Add busy_count and client parameter to wl_buffer
Can be used to implement release event.
2011-06-21 17:42:57 +02: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
Laszlo Agocs
9c36ea776b Do not leak globals and listeners.
From 3fa2ad7dec42f85795449f33b2a4c9461aa4924d Mon Sep 17 00:00:00 2001
From: Laszlo Agocs <laszlo.p.agocs@nokia.com>
Date: Tue, 14 Jun 2011 11:35:28 +0200
Subject: [PATCH] Do not leak globals and listeners.
2011-06-20 11:25:29 -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
Corentin Chary
98d8256b8e Call a new global listener for each existing global
Signed-off-by: Corentin Chary <corentin.chary@gmail.com>
2011-06-11 17:32:54 -04:00
Corentin Chary
d8f2e5d6ab Flush the protocol output buffer when it fills up
Original patch from bnf.

Signed-off-by: Corentin Chary <corentin.chary@gmail.com>
2011-06-11 17:32:25 -04:00
Kristian Høgsberg
d7569d46c5 Remove left-over visual prototypes 2011-06-07 13:19:28 -04:00
Kristian Høgsberg
467ae367ed connection: Fix pointer arithmetic error
Pointed out by Nicolas Pouillon in irc.
2011-06-07 10:53:27 -04:00
Samuel Rødal
02e1ffdefe Fall back to accept() on systems where accept4() is not implemented. 2011-05-31 15:14:14 -04:00
Benjamin Franzke
b06e891e4c wayland-shm: Check visual for being NULL 2011-05-31 11:18:06 +02:00
Kristian Høgsberg
eff7fc0d99 TODO: Update 2011-05-19 11:53:39 -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
4453ba084a server: Send error if client tries to bind to non-existant object 2011-05-12 21:27:57 -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
Kristian Høgsberg
2d27f3b6e9 TODO: Consolidate and update 2011-05-10 22:56:01 -04:00
Kristian Høgsberg
7c140c8c84 connection.c: Use sizeof int for allocating fd extra storage 2011-05-10 21:49:22 -04:00
Robert Bragg
dcfaf4ec2d display: Adds wl_display_flush to send buffered commands
Previously for wayland clients to flush buffered connection data to the
compositor they needed to first register an event-mask-update-callback
via wl_display_get_fd() to determine if there is anything writeable
pending.  (NB: It's considered an error to iterate connection data with
an invalid mask)

Since it's only possible to register a single update callback currently
it's a bit awkward if you want to allow multiple orthogonal components
to flush the connection data, such as Cogl and Clutter which both want
to interact with wayland and may want to flush commands at different
times.

This adds a mechanism, wl_display_flush(), which makes it possible to
flush writeable connection data without first checking the event mask.
2011-05-10 13:07:06 -04:00
Benjamin Franzke
a77498d07c wayland-util: Drop unused struct wl_argument 2011-05-10 12:56:22 +02:00
jani.uusi-rantala@nokia.com
53200f05c7 Add configure option to disable scanner compilation
When cross-compiling Wayland, wayland-scanner should be picked up from
the host system instead of compiling and trying to run e.g. ARM
wayland-scanner on X86.

This patch adds --disable-scanner option for disabling the scanner
from the build and using existing wayland-scanner instead (from PATH)
which should help in most cross-compilation systems.

By default everything works as before.

Signed-off-by: Jani Uusi-Rantala <jani.uusi-rantala@nokia.com>
2011-05-06 17:35:23 -04:00
Benjamin Franzke
bd70dc185a Add a destroy_listener to wl_resource
Drop the one in wl_surface.
2011-05-06 15:39:59 -04:00