summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2012-05-11Optimize wl_fixed_t to/from double conversion functionsfixed-optimizationKristian Høgsberg4-12/+118
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>
2012-04-20tests: add .gitignorePekka Paalanen1-0/+10
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
2012-04-20os: wrap socket(SOCK_CLOEXEC) callsPekka Paalanen7-3/+211
Some system C libraries do not offer SOCK_CLOEXEC flag. Add a new header for OS compatibility wrappers. Wrap socket() calls into wl_os_socket_cloexec() which makes sure the O_CLOEXEC flag gets set on the file descriptor. On systems having SOCK_CLOEXEC this uses the old socket() call, and falls back if it fails due to the flag (kernel not supporting it). wayland-os.h is private and not exported. Add close-on-exec tests for both normal and forced fallback paths. Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
2012-04-20tests: support testing fd inheritance over execPekka Paalanen5-4/+124
Add facility for testing how (many) file descriptors survive an exec. This allows implementing O_CLOEXEC tests. Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
2012-04-20tests: plug fd leaks in free_source_with_dataPekka Paalanen1-0/+5
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>