Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
wl_input_device has been both renamed and split. wl_seat is now a
virtual object representing a group of logically related input devices
with related focus.
It now only generates one event: to let clients know that it has new
capabilities. It takes requests which hand back objects for the
wl_pointer, wl_keyboard and wl_touch interfaces it exposes which all
provide the old input interface, just under different names.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
|
|
Haven't figured out how to regenerate the html, so it's not tested.
Looks like remaining html errors will be fixed in the next publican
release: https://bugzilla.redhat.com/show_bug.cgi?id=788576
|
|
I was just curious of how much the looping takes time without
conversion, so I added this.
My results on Intel(R) Core(TM) i5-2410M CPU @ 2.30GHz:
benchmarked noop: 1.876349827s
benchmarked magic: 2.245844470s
benchmarked div: 12.709085309s
benchmarked mul: 7.504838141s
Mul seems to take 15x the time magic does, cool!
Btw. the simple default cast of int32_t to double is slower than magic
for me, hence the use of union.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Daniel did fixed point coordinates.
|
|
This offers more precision when using devices like tablets, and also for
transformed surfaces.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
|
|
'fixed' is a signed decimal type which offers a sign bit, 23 bits of
integer precision, and 8 bits of decimal precision. This is exposed as
an opaque struct with conversion helpers to and from double and int on
the C API side.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
|
|
Closing an fd will remove it from the epoll set only if it hasn't been
dup'ed. In other words, the fd is only removed from epoll when all file
descriptors referring to the open file has been close. We now dup
fd for fd sources, so we need to use EPOLL_CTL_DEL directly now.
|
|
|
|
|
|
|
|
Doesn't necessarily catch the signalfd bug just fixed, since that only
triggers when an uninitialized int is negative.
|
|
|
|
Introduced in:
commit 80f4f0d5127ebc8d5e35969a29691cf61a79997d
Author: Jonas Ådahl <jadahl@gmail.com>
Date: Wed Mar 21 10:31:24 2012 +0100
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
|
|
Not worh the trouble.
|
|
|
|
|
|
|
|
Since we just use it as a simple boolean flag, might as well convert it
to unsigned.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
|
|
This way we can include the generated code from C++.
|
|
Make sure we include any generated headers from src/ as well, like
wayland-version.h.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
|
|
|
|
Globals are bursted to client on conntect. Now when new global
objects are added to the server state, existing clients also get
notified.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Spotted during wl_os_accept_cloexec() work.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
|
|
Some system C libraries do not have SOCK_CLOEXEC, and completely miss
accept4(), too. Provide a fallback for this case.
This changes the behaviour: no error messages are printed now for
failing to set CLOEXEC but the file descriptor is closed.
The unit test for this wrapper is NOT included.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
|
|
Some system C libraries do not have epoll_create1() nor EPOLL_CLOEXEC,
provide a fallback.
Add tests for the wrapper.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
|
|
Some system C libraries do not have MSG_CMSG_CLOEXEC. This flag would
automatically set O_CLOEXEC flag on any received file descriptors.
Provide a fallback that does it manually. If setting CLOEXEC fails, the
file descriptor is closed immediately, which will lead to failures but
avoid leaks. However, setting CLOEXEC is not really expected to fail
occasionally.
Add tests for the wrapper. The setup is copied from connection-test.c.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
|
|
warning: ignoring return value of ‘pipe’, declared with attribute
warn_unused_result
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
|
|
Some system C libraries do not have F_DUPFD_CLOEXEC. Provide a fallback.
Add tests for the new wl_os_dupfd_cloexec() wrapper.
Add per-wrapper call counters in os_wrappers-test.c. Makes it easier to
determine the minimum required number of wrapped calls.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
|
|
If it's not already defined, and we are on Linux, #define it. This gets
rid of a load of #ifdefs. This should also allow to use it when the
kernel supports it, but the libc does not define it.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
|
|
If socket() fails, it will return failure code. No need to reset errno
beforehand.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
|
|
|
|
|
|
|
|
|
|
Casey did surface.enter/leave.
|
|
These events let us track when a surface enters or leaves the scanout region of
an output. This way if a surface moves to another output and that output is on
a different card, we can suggest the toolkit reallocate its buffers
appropriately.
Signed-off-by: Casey Dahlin <cdahlin@redhat.com>
|