- 07 Mar, 2014 2 commits
-
-
Kristian Høgsberg authored
-
Kristian Høgsberg authored
-
- 18 Feb, 2014 5 commits
-
-
Kristian Høgsberg authored
A small step towards non-recursive build system for wayland too.
-
Kristian Høgsberg authored
Same reason as commit cd31275f from weston: The scanner needs to be good enough. If it crashes or fails to report invalid input, that needs to get fixed.
-
Jasper St. Pierre authored
In some cases, like Xwayland, stdout and stderr are redirected to /dev/null, losing us valuable information, while wl_log can be overridden, allowing us to send it to a log file instead. This can help debugging immensely.
-
Jasper St. Pierre authored
The code very intentionally emits a lot of redundant declarations to simplify the scanner code. Somebody building with -Wredundant-decls would have compile errors, so emit special pragmas to turn those warnings off. These pragmas should be ignored outside of gcc/clang.
-
Jasper St. Pierre authored
errno is supposed to be positive, not negative. It seems that everything else that calls display_fatal_error() calls it with a positive error code, so do it here as well.
-
- 10 Feb, 2014 1 commit
-
-
Pekka Paalanen authored
Clarify when the pending and current buffer transform and scale values change, and what exactly happens on commit. This matches what Weston currently does. Signed-off-by:
Pekka Paalanen <pekka.paalanen@collabora.co.uk>
-
- 08 Feb, 2014 2 commits
-
-
Kristian Høgsberg authored
The wl_display events (error and delete_id) need to be handled even if the default queue doesn't get dispatched for a while. For example, a busy EGL rendering loop hits wl_display.sync every eglSwapBuffers() and we need to process the delete_id events to maintain the object ID data structure. As it is, that doesn't happen, but with this change we special case wl_display events. We put them on a custom, private queue and when dispatching events, we always dispatch display_queue events first. The wl_display proxy should still be the default_queue, so that objects created from wl_display requests get assigned to that.
-
Kristian Høgsberg authored
We'll add a new queue next, so rename the default queue first.
-
- 07 Feb, 2014 1 commit
-
-
Kristian Høgsberg authored
On the client side we log fatal errors before we exit. If a client doesn't set a log handler, it's hard to figure out what goes wrong.
-
- 06 Feb, 2014 2 commits
-
-
Jason Ekstrand authored
Signed-off-by:
Jason Ekstrand <jason@jlekstrand.net>
-
Neil Roberts authored
The previous implementation of the wl_container_of macro was dereferencing the sample pointer in order to get an address of the member to calculate the offset. Ideally this shouldn't cause any problems because the dereference doesn't actually cause the address to be read from so it shouldn't matter if the pointer is uninitialised. However this is probably technically invalid and could cause undefined behavior. Clang appears to take advantage of this undefined behavior and doesn't bother doing the subtraction. It also gives a warning when it does this. The documentation for wl_container_of implies that it should only be given an initialised pointer and if that is done then there is no problem with clang. However this is quite easy to forget and doesn't cause any problems or warnings with gcc so it's quite easy to accidentally break clang. To fix the problem this changes the macro to use pointer - offsetof(__typeof__(sample), member) so that it doesn't need to deref the sample pointer. This does however require that the __typeof__ operator is supported by the compiler. In practice we probably only care about gcc and clang and both of these happily support the operator. The previous implementation was also using __typeof__ but it had a fallback path avoiding it when the operator isn't available. The fallback effectively has undefined behaviour and it is targetting unknown compilers so it is probably not a good idea to leave it in. Instead, this patch just removes it. If someone finds a compiler that doesn't have __typeof__ but does work with the old implementation then maybe they could add it back in as a special case. This patch removes the initialisation anywhere where the sample pointer was being unitialised before using wl_container_of. The documentation for the macro has also been updated to specify that this is OK.
-
- 31 Jan, 2014 3 commits
-
-
Jasper St. Pierre authored
"data" is the name of the void* argument in the implementation. While we probably shouldn't use such an easily-collidable name, just rename the callback's argument to callback_data for now.
-
Jasper St. Pierre authored
The parameter here is an opaque integer, rather than the event serial. The "frame" callback uses this to pass the current time of day in milliseconds.
-
Jasper St. Pierre authored
A simple copy-paste typo.
-
- 24 Jan, 2014 1 commit
-
-
Kristian Høgsberg authored
-
- 20 Jan, 2014 4 commits
-
-
Kristian Høgsberg authored
Even if nothing receives the even, the arguments still need to be valid. The test is sending out event 0 from the wl_display interface, which is the error event. This requires arg 0 to be a valid object and arg 2 to be a non-null string. The test just leaves that undefined, causing intermittent test failures. As it is, the resource destroy test doesn't need to send an event to validate the various resource destroy hooks, so we can just remove the call to wl_resource_post_event() alltogether. Thanks to Matt Turner <mattst88@gmail.com> for pointing out the failure.
-
Jonas Ådahl authored
Make it clear that multiple requests before commit are allowed and how it is handled. Signed-off-by:
Jonas Ådahl <jadahl@gmail.com> Reviewed-by:
Jasper St. Pierre <jstpierre@mecheye.net>
-
Jonas Ådahl authored
Clarify some semantics of wl_subsurface.place_below and wl_subsurface.place_below that were not specified. Signed-off-by:
Jonas Ådahl <jadahl@gmail.com> Reviewed-by:
Jasper St. Pierre <jstpierre@mecheye.net>
-
Kristian Høgsberg authored
This is the release candidate.
-
- 19 Jan, 2014 1 commit
-
-
Kristian Høgsberg authored
I accidentally committed Jaspers xserver patch to wayland. This reverts commit 8a781aef.
-
- 17 Jan, 2014 1 commit
-
-
Jonas 'Sortie' Termansen authored
POSIX mandates the poll.h header as the standard location of poll(2).
-
- 15 Jan, 2014 11 commits
-
-
U. Artie Eoff authored
In wl_display_add_shm_format(), check the return value from wl_array_add() before dereferencing it and assigning it a value. Return the resulting pointer back to the caller. Signed-off-by:
U. Artie Eoff <ullysses.a.eoff@intel.com>
-
U. Artie Eoff authored
Signed-off-by:
U. Artie Eoff <ullysses.a.eoff@intel.com>
-
U. Artie Eoff authored
Signed-off-by:
U. Artie Eoff <ullysses.a.eoff@intel.com>
-
U. Artie Eoff authored
Signed-off-by:
U. Artie Eoff <ullysses.a.eoff@intel.com>
-
U. Artie Eoff authored
Signed-off-by:
U. Artie Eoff <ullysses.a.eoff@intel.com>
-
U. Artie Eoff authored
Signed-off-by:
U. Artie Eoff <ullysses.a.eoff@intel.com>
-
U. Artie Eoff authored
Signed-off-by:
U. Artie Eoff <ullysses.a.eoff@intel.com>
-
U. Artie Eoff authored
Signed-off-by:
U. Artie Eoff <ullysses.a.eoff@intel.com>
-
U. Artie Eoff authored
Signed-off-by:
U. Artie Eoff <ullysses.a.eoff@intel.com>
-
U. Artie Eoff authored
Signed-off-by:
U. Artie Eoff <ullysses.a.eoff@intel.com>
-
U. Artie Eoff authored
Signed-off-by:
U. Artie Eoff <ullysses.a.eoff@intel.com>
-
- 10 Jan, 2014 1 commit
-
-
Jasper St. Pierre authored
-
- 09 Jan, 2014 1 commit
-
-
chi ding authored
Here is the JIRA page of this issue https://bugs.tizen.org/jira/browse/TIVI-1889 Change-Id: I773a6d2d8f6fd02ff10c92450db1fa8a69544219 Signed-off-by:
Chi Ding <chi.ding@mobica.com> Closes: https://bugs.freedesktop.org/show_bug.cgi?id=65186
-
- 17 Dec, 2013 2 commits
-
-
Adrian Negreanu authored
POSIX says to set errno=0 before calling strtol since the return value alne cannot tell a failure. on ubuntu armel I get: ../src/wayland-scanner client-header < ../../protocol/wayland.xml > wayland-client-protocol.h <stdin>:1188: error: invalid integer (2) Signed-off-by:
Adrian Negreanu <adrian.m.negreanu@intel.com>
-
Kristian Høgsberg authored
-
- 10 Dec, 2013 1 commit
-
-
Kristian Høgsberg authored
Restart the poll() if we take a signal. This is easily triggered in an application that ends up blocking in eglSwapBuffers(), and causes EGL to fail to allocate a back buffer.
-
- 09 Dec, 2013 1 commit
-
-
Jonas Ådahl authored
Signed-off-by:
Jonas Ådahl <jadahl@gmail.com>
-