aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* tests: More wl_map testsKristian Høgsberg2012-03-051-0/+46
|
* TOOD: Frame based input doneKristian Høgsberg2012-03-051-2/+0
|
* tests: makefile error: missing test-runner.hGaetan Nadon2012-03-051-1/+1
| | | | | | Detected by running distcheck Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
* scanner: Add since attributeKristian Høgsberg2012-03-051-1/+22
| | | | This will help us document when a request or event was added to the protocol.
* check: connection-test fails to link to ffiGaetan Nadon2012-03-041-1/+1
| | | | | | | This prevents distcheck from completing. Moving the -lffi at the end of the command fixes the problem. Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
* publican: support out-of-source tree buildGaetan Nadon2012-03-0414-39/+55
| | | | | | | | | | When srcdir!=builddir, there is no way to tell publican that the source is in srcdir rather than builldir. The workaround is to copy the source files from srcdir to builddir. To retain the en-US final destination name, the source directory is renamed to en_US. Tested-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
* Fix distcheck where protocol.xsl was missing in the tarballGaetan Nadon2012-03-042-2/+4
| | | | | | | To reproduce, invoke distcheck from an out-of-source tree. Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
* Add wl_array_for_eachKristian Høgsberg2012-03-043-6/+27
|
* Add tests subdir to toplevel SUBDIRS variableKristian Høgsberg2012-03-031-1/+1
| | | | Artie spotted this.
* tests: Add connection marshalling testsKristian Høgsberg2012-03-031-0/+59
|
* tests: Add connection testsKristian Høgsberg2012-03-022-2/+145
|
* test-runner: Fix warningsKristian Høgsberg2012-03-021-1/+2
|
* connection: Export wl_connection_queue() so we can test itKristian Høgsberg2012-03-022-1/+3
|
* tests: Print test status after running testKristian Høgsberg2012-03-021-1/+1
| | | | | This way assert output will be a line by itself, which is easier to read and lets editors such as emacs step through failed assertions.
* tests: Add Unit tests for wl_map and wl_array data structuresKristian Høgsberg2012-03-026-1/+281
| | | | | We use a simple test-runner helper that runs each test in a separate process and reports the pass/fail rate at the end.
* Terminate drag if data source is destroyedAnder Conselvan de Oliveira2012-03-022-16/+41
|
* server: fix event sending type mismatchesPekka Paalanen2012-03-022-5/+7
| | | | | | | These were not bugs in practice, because the first (and only) field of struct wl_surface is struct wl_resource. Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
* server: use the event sending wrappersPekka Paalanen2012-03-023-48/+32
| | | | | | This exposes some type mismatches that are fixed in the next commit. Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
* scanner: emit event wrapper functions for serverPekka Paalanen2012-03-022-8/+51
| | | | | | | | | | | | Generate typed wrapper functions for sending events in a server. This allows compile time type checking, unlike the existing method of calling the variadic function wl_resource_post_event(). The stuff in wayland-server.h had to be slightly reordered to have all (forward) declarations before use. Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
* wayland-server: Destroy resource before sending out delete_id eventKristian Høgsberg2012-03-011-7/+8
| | | | | In some cases, we send out events from the resource destructor and those need to go out before we recycle the object ID.
* Fix server crash when a client dies during a drag with an iconAnder Conselvan de Oliveira2012-03-012-1/+19
| | | | | | | | If a client dies during a drag that it started using an icon surface, the server could crash because the icon surface is not valid anymore. Fix this by using a destroy listener to reset device->drag_surface to nil when the surface is destroyed.
* Fix wl_data_offer source destroy listenerAnder Conselvan de Oliveira2012-03-011-1/+4
| | | | | | The listener function implementation was getting a wrong pointer to the wl_data_offer object because the resource parameter is actually the data source and not the data offer.
* configure.ac: Fix test-for-empty bugKristian Høgsberg2012-02-291-2/+2
| | | | | | | | | | From Gaetan Nadon: ./configure: line 11662: test: !=: unary operator expected AM_CONDITIONAL([HAVE_XSLTPROC], [test $XSLTPROC != ""]) AM_CONDITIONAL([HAVE_PUBLICAN], [test $PUBLICAN != ""]) It shows up when you do not have publican. The usual "testing for blank" bug.
* protocol: Clarify the documentation for the fullscreen protocolRob Bradford2012-02-291-19/+34
|
* Merge remote-tracking branch 'whot/publican'Kristian Høgsberg2012-02-2920-4/+668
|\
| * Hack up distcheck for publicanPeter Hutterer2012-02-291-4/+18
| | | | | | | | | | | | | | | | | | | | | | | | Publican requires a read-write source tree, see http://bugzilla.redhat.com/show_bug.cgi?id=798484 And it currently cannot build out-of-tree, so we need to copy the sources into the _build tree and generate Protocol.xml into that tree too (we'd have to do this anyway since automake creates a read-only source tree, so we can't just link). Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
| * Generate the docbook description for the protocol from wayland.xmlPeter Hutterer2012-02-294-2/+122
| | | | | | | | | | | | | | Convert the wayland.xml protocol description to a docbook-compatible format and hook it up to the publican sources. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
| * Hook up autotools for publicanPeter Hutterer2012-02-296-1/+45
| | | | | | | | | | | | | | automake doesn't seem to provide a sensible method to install a directory of stuff in $(docdir). Do it manually then. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
| * doc: Comment out some of the default chaptersPeter Hutterer2012-02-291-0/+5
| | | | | | | | | | | | | | I'll leave them in for now as a template for how things looked originally, this can be removed later. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
| * doc: Add architecture from the websitePeter Hutterer2012-02-294-0/+319
| | | | | | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
| * doc: Fix up title page with logo and author informationPeter Hutterer2012-02-294-9/+16
| | | | | | | | | | | | Abstract taken from http://wayland.freedesktop.org Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
| * doc: add publican-created doctreePeter Hutterer2012-02-299-0/+154
| | | | | | | | | | | | | | | | | | | | $> publican create --name=Wayland unmodified otherwise To build the tree to target formats, use $> publican build --langs=en-US --formats=html,pdf Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
| * protocol: fix make distcheckPeter Hutterer2012-02-291-3/+4
| | | | | | | | | | | | | | Distribute all source files that we need for buildling. Plus, remove the html file on make clean. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* | Don't block when flushing a full protocol bufferKristian Høgsberg2012-02-294-15/+39
| | | | | | | | | | | | | | In case the client isn't responding, this will block the compositor. Instead we flush with MSG_DONTWAIT, which lets us fill up the kernel buffer as much as we can (after not returning EPOLLOUT anymore it still can take 80k more), and then disconnect the client if we get EAGAIN.
* | Update TODOKristian Høgsberg2012-02-281-39/+0
|/
* Allow update function to not be set in wl_display_get_fdSamuel Rødal2012-02-281-1/+3
| | | | | | | | | | | | | Ignore previous patch, here's the correct version. From 4e1bedaaf05b576f5191f8fe3a34904ab9707414 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20R=C3=B8dal?= <samuel.rodal@nokia.com> Date: Mon, 27 Feb 2012 15:17:20 +0100 Subject: [PATCH] Allow update function to not be set in wl_display_get_fd The same check is done in connection_update, and now with wl_display_flush() there's less need for the client to need to know the connection mask.
* Rename client side wl_display_destroy() to wl_display_disconnect()Samuel Rødal2012-02-282-2/+2
| | | | | | | | | | This avoids the clash with the wayland-server version with the same name, and allows linking against both wayland-client and wayland-server at the same time, which can be useful for unit testing purposes as well as for nested compositing. Without this there will be crashes as the wrong wl_display_destroy() is called.
* util: Comments before wl_list were a bit off, fixed the example usage.Üstün Ergenoğlu2012-02-261-4/+12
| | | | Signed-off-by: Üstün Ergenoğlu <ego@ustun.fi>
* protocol.xsl: Rename stylesheet to wayland-protocol.cssKristian Høgsberg2012-02-233-2/+2
| | | | Otherwise it clashes with the website stylesheet.
* protocol: add xslt stylesheet to prettify the protocolPeter Hutterer2012-02-235-2/+258
| | | | | | Includes rudimentary styling only. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* protocol: fix missing hyphenation for "client-created"Peter Hutterer2012-02-231-1/+1
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* scanner: Remove unused variable 'len'Peter Hutterer2012-02-231-1/+1
| | | | | | | scanner.c: In function ‘desc_dump’: scanner.c:142:42: warning: unused variable ‘len’ [-Wunused-variable] Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* spec: padding bytes are undefined, state soPeter Hutterer2012-02-231-1/+2
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* spec: typo and wording fixesPeter Hutterer2012-02-231-3/+3
| | | | Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
* Fix compilation: uid_t, gid_t and pid_t are defined in sys/types.hThiago Macieira2012-02-231-0/+1
| | | | | This error shows up in third-party code when including wayland-server.h.
* Add wl_region and surface requests to set opaque and input regionsKristian Høgsberg2012-02-231-0/+76
|
* Split pointer_focus and keyboard_focus into enter and leave eventsKristian Høgsberg2012-02-232-17/+25
|
* server: Implement wl_keyboard_grab_interface.Scott Moreau2012-02-182-0/+59
|
* server: Rename wl_grab_interface.Scott Moreau2012-02-183-38/+39
| | | | | | | | | | | | | In order to separate pointer and keyboard grabs, we need to introduce a keyboard grab interface but first we must rename some generic types to denote which device is holding the grab. Type renames: wl_grab_interface -> wl_pointer_grab_interface wl_grab -> wl_pointer_grab wl_input_device_start_grab -> wl_input_device_start_pointer_grab wl_input_device_end_grab -> wl_input_device_end_pointer_grab
* Add wl_client_get_credentials() to get unix credentials for clientKristian Høgsberg2012-02-182-0/+24
|