summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2012-05-16doc: Update docs to refer to wl_seat instead of wl_input_deviceHEADmasterKristian Høgsberg1-2/+2
2012-05-16Convert wl_input_device to wl_seat (and friends)Daniel Stone5-306/+494
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>
2012-05-15Add missing alt attributes in publican docs.Darxus3-0/+25
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
2012-05-15tests: add noop to fixed-benchmarkPekka Paalanen1-0/+16
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>
2012-05-14Optimize wl_fixed_t to/from double conversion functionsKristian Høgsberg5-12/+211
2012-05-11TODO: Strike the last xkbcommon issuesKristian Høgsberg1-7/+0
2012-05-10protocol: Specify that the fullscreen framerate parameter is also mHzKristian Høgsberg1-1/+2
2012-05-10protocol: Back out accidentally committed wl_seat changesKristian Høgsberg1-62/+38
2012-05-10protocol: Add documentation for wl_outputKristian Høgsberg1-13/+31
2012-05-09TODO: More updatesKristian Høgsberg2-54/+66
2012-05-08Update TODOKristian Høgsberg1-8/+0
Daniel did fixed point coordinates.
2012-05-08Input: Convert pointer co-ordinates to signed_24_8Daniel Stone4-28/+35
This offers more precision when using devices like tablets, and also for transformed surfaces. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-05-08Add support for signed 24.8 decimal numbersDaniel Stone6-3/+81
'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>
2012-05-08event-loop: Delete fd from epoll when removing event sourceKristian Høgsberg1-2/+6
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.
2012-05-08tests: prefix event loop tests with event_loop_Kristian Høgsberg1-2/+2
2012-05-08tests: assert that mask is zero is post_dispatch callbackKristian Høgsberg1-0/+1
2012-05-08tests: Add timerfd testKristian Høgsberg1-1/+31
2012-05-08tests: Add signal test caseKristian Høgsberg1-0/+28
Doesn't necessarily catch the signalfd bug just fixed, since that only triggers when an uninitialized int is negative.
2012-05-08event-loop: Consolidate code for setting up new sourcesKristian Høgsberg1-98/+44
2012-05-08event-loop: fix conditional checkingTiago Vignatti1-1/+1
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>
2012-05-07TODO: drop scanner namespace itemKristian Høgsberg1-3/+0
Not worh the trouble.
2012-05-07scanner: Generalize desc_dump() to handle hanging indentsKristian Høgsberg1-34/+65
2012-05-07scanner: Fix desc_dump() to not extend beyond column 72Kristian Høgsberg1-17/+11
2012-05-07scanner: Use indent() function in desc_dump()Kristian Høgsberg1-25/+19
2012-05-07Use unsigned for key/button up/down state in grabsDaniel Stone3-5/+5
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>
2012-05-03Use class_ instead of class in protocolKristian Høgsberg1-1/+1
This way we can include the generated code from C++.
2012-05-02tests: Fix out-of-tree buildsDaniel Stone1-1/+1
Make sure we include any generated headers from src/ as well, like wayland-version.h. Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-05-02Add shell_surface set_title and set_class requestsKristian Høgsberg2-9/+16
2012-05-02server: Post new globals to current clientsNicolas Pouillon1-0/+8
Globals are bursted to client on conntect. Now when new global objects are added to the server state, existing clients also get notified.
2012-05-01protocol: Move ping event down to other eventsKristian Høgsberg1-8/+8
2012-04-27Add wl_proxy_get_id()Kristian Høgsberg2-0/+7
2012-04-27Add wl_client_get_object()Kristian Høgsberg2-0/+8
2012-04-27Drop stale prototypeKristian Høgsberg1-3/+0
2012-04-26tests: Just list tests under the TESTS variableKristian Høgsberg1-4/+2
2012-04-25Merge remote-tracking branch 'pq/for-krh'Kristian Høgsberg8-29/+444
2012-04-25Add COPYINGKristian Høgsberg1-0/+22
2012-04-25server: do not create wl_client if accept() failedPekka Paalanen1-2/+2
Spotted during wl_os_accept_cloexec() work. Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
2012-04-25os: wrap accept4(SOCK_CLOEXEC)Pekka Paalanen5-8/+29
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>
2012-04-25os: wrap epoll_createPekka Paalanen4-1/+74
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>
2012-04-25os: wrap recvmsg(MSG_CMSG_CLOEXEC)Pekka Paalanen4-1/+229
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>
2012-04-25tests: silence warnings from pipe()Pekka Paalanen1-3/+5
warning: ignoring return value of ‘pipe’, declared with attribute warn_unused_result Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
2012-04-25os: wrap F_DUPFD_CLOEXECPekka Paalanen4-4/+91
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>
2012-04-25os: define SOCK_CLOEXEC on LinuxPekka Paalanen3-9/+14
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>
2012-04-25os: remove unneeded errno assignmentPekka Paalanen1-1/+0
If socket() fails, it will return failure code. No need to reset errno beforehand. Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
2012-04-22tests: Test invoking closures built with wl_closure_vmarshal()Kristian Høgsberg1-0/+38
2012-04-22connection: Make sure we can invoke closures built with wl_closure_vmarshal()Kristian Høgsberg1-0/+7
2012-04-22connection: Move closure object out of wl_connectionKristian Høgsberg6-94/+96
2012-04-21connection: Dont put fds in the connection until we send the closureKristian Høgsberg1-5/+30
2012-04-20Update TODOKristian Høgsberg1-6/+0
Casey did surface.enter/leave.
2012-04-20Add wl_surface.enter and wl_surface.leave eventsCasey Dahlin1-0/+18
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>