summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-06-10When using mulitple global listener, don't forget to re-send previously ↵HEADmasterCorentin Chary1-0/+5
cached global objects. Signed-off-by: Corentin Chary <corentin.chary@gmail.com>
2011-06-10Flush the buffer when full (patch from bnf)Corentin Chary1-0/+4
Signed-off-by: Corentin Chary <corentin.chary@gmail.com>
2011-06-07Remove left-over visual prototypesKristian Høgsberg1-8/+0
2011-06-07connection: Fix pointer arithmetic errorKristian Høgsberg1-1/+1
Pointed out by Nicolas Pouillon in irc.
2011-05-31Fall back to accept() on systems where accept4() is not implemented.Samuel Rødal1-1/+7
2011-05-31wayland-shm: Check visual for being NULLBenjamin Franzke1-1/+1
2011-05-19TODO: UpdateKristian Høgsberg1-10/+0
2011-05-12Add event to associate visuals with a pixel format tokenKristian Høgsberg3-50/+46
2011-05-12server: Send error if client tries to bind to non-existant objectKristian Høgsberg1-2/+9
2011-05-11Define shm specific errorsKristian Høgsberg2-15/+16
We stop abusing the wl_display error codes for shm purposes.
2011-05-11Unify error eventsKristian Høgsberg5-57/+57
Consolidate the different error events into one. This event will also be usable for other interaces.
2011-05-10TODO: Consolidate and updateKristian Høgsberg1-83/+155
2011-05-10connection.c: Use sizeof int for allocating fd extra storageKristian Høgsberg1-1/+1
2011-05-10display: Adds wl_display_flush to send buffered commandsRobert Bragg2-0/+8
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-10wayland-util: Drop unused struct wl_argumentBenjamin Franzke1-5/+0
2011-05-06Add configure option to disable scanner compilationjani.uusi-rantala@nokia.com2-0/+16
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-06Add a destroy_listener to wl_resourceBenjamin Franzke3-13/+23
Drop the one in wl_surface.
2011-05-04connection: Define _GNU_SOURCE for F_DUPFD_CLOEXECBenjamin Franzke1-0/+2
2011-05-04scanner: Fail if there's a 'destroy' request not marked as a destructorKristian Høgsberg1-0/+3
2011-05-04scanner: Initialize wl_message structs completelyKristian Høgsberg1-1/+1
2011-05-04connection: Handle fd passing in an CLOEXEC safe wayKristian Høgsberg1-2/+2
2011-05-02mmap shm buffers read/writeKristian Høgsberg1-1/+2
2011-04-29Add some things related to wayland-scanner to .gitignoreCasey Dahlin2-1/+2
2011-04-29event-loop: Drop unused idle_listKristian Høgsberg1-3/+0
Idle sources are now just a special case of a checked source.
2011-04-22Don't define wl_shell in wayland-server.hKristian Høgsberg1-4/+0
2011-04-22event-loop: Idle callback are a special case of a checked sourceKristian Høgsberg1-11/+8
2011-04-22event-loop: Dont use a check callback just dispatch againKristian Høgsberg3-50/+49
We pass the poll mask so the dispatch callback can know if there is data on the fd or not. The dispatch function must return true if it dispatched something, in which case we need to do another round of post-dispatch callbacks."
2011-04-22Add common shm-server codeBenjamin Franzke3-0/+262
2011-04-22Remove buffer.attach vfuncBenjamin Franzke1-1/+0
2011-04-22Add buffer.damage request to the protocolBenjamin Franzke2-11/+18
Thus remove the server-side used vfunc buffer::damage.
2011-04-21event-loop: Add an optional post-dispatch source calloutKristian Høgsberg2-17/+54
This lets a source mark itself as ready to dispatch even though the fd didn't trigger. What can happen is that for the X11 socket, some other source callback (the drm fd or a wayland client socket) can cause somebody to do an X roundtrip (DRI2 get buffers, for example) and queue up events in the xcb buffer. When we get back to epoll, the X fd no longer polls readable and we don't process those events until we get another X event. The check callback is called after a round of dispatching and lets a source check if it has data to dispatch and mark itself ready. Next round of dispatching will then process it immediately instead of blocking in epoll_wait().
2011-04-20Pass version number to global bind functionKristian Høgsberg2-7/+12
2011-04-20scanner: Don't hardcode the wl_ prefix in the code generatorKristian Høgsberg3-67/+67
2011-04-18Use wl_client_post_global() for connect eventsKristian Høgsberg1-5/+1
2011-04-18Introduce display.bind to request events from a globalKristian Høgsberg6-24/+65
2011-04-13Print line numbers in scanner errorsKristian Høgsberg1-38/+33
2011-04-13Move proxy prototype to wayland-client.hKristian Høgsberg3-32/+18
Let's try to avoid to generate more code than we need to.
2011-04-13Add lockfile to the socketJørgen Lind1-0/+54
This uses flock to detect if there is a process that is active. If not then it unlinks the socket file if it exists, so that bind won't fail
2011-04-11Merge remote-tracking branch 'bnf/surface-frame-event'Kristian Høgsberg5-6/+21
2011-04-11Make all fds close-on-execKristian Høgsberg3-6/+11
2011-04-11Make wl_client_create() publicKristian Høgsberg2-1/+2
2011-04-11Support passing the Wayland fd in the environmentKristian Høgsberg1-17/+38
2011-04-06Fix usage help text in wayland-scannerHarald Fernengel1-1/+1
2011-03-16Extent frame event to be surface dependentBenjamin Franzke5-6/+21
2011-03-14Close signal file descriptor in event loop on remove and failure.Iskren Chernev1-5/+3
When the signal handler is removed the corresponding fd is closed. This should automatically remove it from the epoll set.
2011-03-14Close timer file descriptors in event loop on remove and failure.Iskren Chernev1-5/+3
When the timer is removed the corresponding fd is closed. This should automatically remove it from the epoll set.
2011-03-14Stored signal_number in event_source structure.Iskren Chernev1-0/+1
signal_number was not previously stored, so the callbacks didn't get a correct signal_number as their first argument.
2011-03-14Fix event loop timer update.Iskren Chernev1-2/+2
It can now handle delays greater than 2 seconds without overflowing.
2011-03-12Fix double remove from surface destroy_listener_listKristian Høgsberg1-11/+13
We remove the listener when a device loses its pointer focus, but doesn't insert it in another destroy_listener list if surface is NULL. When we set another pointer focus surface, we remove it again. Tracked down and tested by Iskren Chernev.
2011-03-12Server socket creation error handling.Iskren Chernev1-12/+29