Kristian Høgsberg [Wed, 1 Dec 2010 22:07:41 +0000 (17:07 -0500)]
Chage the 'base' field to be the name of the super class instead
Instead of display->base.base we want display->proxy.object, or
buffer->buffer.resource.object.id = id;
which makes it clear what we end up addressing.
Kristian Høgsberg [Wed, 1 Dec 2010 22:00:17 +0000 (17:00 -0500)]
Update TODO
Kristian Høgsberg [Wed, 1 Dec 2010 21:52:15 +0000 (16:52 -0500)]
compositor: Use a virtual destructor when shutting down
Backend can now rely on their destroy function getting called on shutdown,
so reset tty etc there instead of handling SIGTERM twice.
Kristian Høgsberg [Wed, 1 Dec 2010 21:43:56 +0000 (16:43 -0500)]
compositor: Shut down properly so we remove the socket
Kristian Høgsberg [Wed, 1 Dec 2010 20:36:20 +0000 (15:36 -0500)]
Create socket in /var/run/user/${HOME}
Use the runtime dir from XDG Base Directory Specification for creating the
socket in a directory only the user can read and write.
Kristian Høgsberg [Wed, 1 Dec 2010 15:21:15 +0000 (10:21 -0500)]
Indentation nit-picking
Kristian Høgsberg [Wed, 1 Dec 2010 15:17:47 +0000 (10:17 -0500)]
Move pointer and keyboard focus tracking into libwayland-server
Kristian Høgsberg [Wed, 1 Dec 2010 14:50:16 +0000 (09:50 -0500)]
Fix warnings from adding -Wall back
Kristian Høgsberg [Wed, 1 Dec 2010 14:46:10 +0000 (09:46 -0500)]
Add $(GCC_CFLAGS) back
Missed this when moving to automake.
Kristian Høgsberg [Wed, 1 Dec 2010 14:42:10 +0000 (09:42 -0500)]
compositor-wayland: Call wlsc_compositor_finish_frame from frame callback
Kristian Høgsberg [Wed, 1 Dec 2010 14:40:58 +0000 (09:40 -0500)]
compositor-wayland: Use glFlush() not glFinish() after rendering frame
Kristian Høgsberg [Wed, 1 Dec 2010 14:39:37 +0000 (09:39 -0500)]
Fix key handler to not run handlers from an empty list
Yuval Fledel [Mon, 22 Nov 2010 23:56:45 +0000 (01:56 +0200)]
Describe the wire protocol
Joel Teichroeb [Tue, 30 Nov 2010 18:22:16 +0000 (10:22 -0800)]
Make the dnd client actually work.
The dnd client now sends a mime type of
application/x-wayland-dnd-flower instead of text/plain. The dnd
message is just the position and random seed that lets the drop source
add the flower to its grid.
Kristian Høgsberg [Tue, 30 Nov 2010 20:10:26 +0000 (15:10 -0500)]
Add reject round trip to dnd protocol
This lets a drag target reject a drop.
Kristian Høgsberg [Tue, 30 Nov 2010 19:01:07 +0000 (14:01 -0500)]
Don't hardcode offered dnd types in window.c
Joel Teichroeb [Tue, 30 Nov 2010 18:22:13 +0000 (10:22 -0800)]
Made the window save the coordinates when being draged.
Benjamin Franzke [Sat, 27 Nov 2010 18:04:12 +0000 (19:04 +0100)]
Add wayland backend for compositor (nested)
Benjamin Franzke [Sat, 27 Nov 2010 18:04:11 +0000 (19:04 +0100)]
wayland_client: rename wl_display_create to wl_display_connect
Avoid conflict when using wayland-{server,client} together.
Kristian Høgsberg [Mon, 29 Nov 2010 22:04:21 +0000 (17:04 -0500)]
Consolidate 'sync' and 'frame' events into just one 'key' event
Yuval Fledel [Mon, 29 Nov 2010 19:29:10 +0000 (21:29 +0200)]
Document wl_list
Comments only.
Yuval Fledel [Mon, 29 Nov 2010 19:05:26 +0000 (21:05 +0200)]
Describe the protocol using inline XML comments
Signed-off-by: Yuval Fledel <yuvalfl@gmail.com>
Fred Morcos [Sun, 28 Nov 2010 18:31:55 +0000 (19:31 +0100)]
fix missing includes in clients/window.h and clients/wayland-glib.h
Kristian Høgsberg [Mon, 29 Nov 2010 13:13:35 +0000 (08:13 -0500)]
Define MULT outside the HAVE_CAIRO_GL #ifdef
Kristian Høgsberg [Wed, 24 Nov 2010 19:29:59 +0000 (14:29 -0500)]
Fix udev rules install directory
Joel Teichroeb [Wed, 24 Nov 2010 02:01:40 +0000 (18:01 -0800)]
Fix potentially undefined behavior
Really this time.
http://llvm.org/bugs/show_bug.cgi?id=8670
Darxus [Tue, 23 Nov 2010 02:24:39 +0000 (21:24 -0500)]
Some additional return value checking
Yuval Fledel [Mon, 22 Nov 2010 19:34:19 +0000 (21:34 +0200)]
Make clients exit orderly when there is no connection
Yuval Fledel [Mon, 22 Nov 2010 19:42:58 +0000 (21:42 +0200)]
add newlines for error printfs
Yuval Fledel [Mon, 22 Nov 2010 19:25:58 +0000 (21:25 +0200)]
xml tag should close, or some parsers fail
Kristian Høgsberg [Mon, 22 Nov 2010 18:58:46 +0000 (13:58 -0500)]
Fix compositor crash when dragging to a surface that disappears
Kristian Høgsberg [Mon, 22 Nov 2010 18:02:21 +0000 (13:02 -0500)]
window: Don't call drag_offer_handler if it's NULL
Reported by canbaby@21cn.com.
Fabian Henze [Fri, 19 Nov 2010 09:28:32 +0000 (10:28 +0100)]
Two typo fixes in the documentation
Two typo fixes in specs/main.tex, mentioned in an earlier mail.
Bryce Harrington [Fri, 19 Nov 2010 20:14:39 +0000 (12:14 -0800)]
Function declares a pointer return, so return one.
These two functions are just wrappers around display_create_*_surface
but weren't forwarding along the result of those calls as is implied by
their return value type.
This fixes a compile-time warning.
Signed-off-by: Bryce Harrington <bryce@canonical.com>
Bryce Harrington [Fri, 19 Nov 2010 20:14:55 +0000 (12:14 -0800)]
Quell warning about potentially uninitialized variable 'surface'
In theory, it was possible for an undefined 'surface' to be passed to
window_set_surface(). Instead, explicitly pass NULL.
Signed-off-by: Bryce Harrington <bryce@canonical.com>
Bryce Harrington [Fri, 19 Nov 2010 20:15:15 +0000 (12:15 -0800)]
Expose window_set_surface() in window.h
gears.c uses this routine and was complaining about it being implicitly
declared.
Signed-off-by: Bryce Harrington <bryce@canonical.com>
Bryce Harrington [Fri, 19 Nov 2010 20:15:36 +0000 (12:15 -0800)]
Cleanup declared but unused variables.
Make was complaining about a bunch of unused variables that were being
declared.
Signed-off-by: Bryce Harrington <bryce@canonical.com>
Benjamin Franzke [Sun, 21 Nov 2010 10:47:11 +0000 (11:47 +0100)]
scanner: include stddef.h to provide NULL and size_t
Kristian Høgsberg [Fri, 19 Nov 2010 15:47:28 +0000 (10:47 -0500)]
Make the server event loop embeddable
By exposing the epoll fd, we can embed the server event loop in other
main loops suchs as Qt or GTK+.
Kristian Høgsberg [Tue, 16 Nov 2010 15:57:55 +0000 (10:57 -0500)]
Oops, no -- in xml comments allowed
Kristian Høgsberg [Tue, 16 Nov 2010 15:55:13 +0000 (10:55 -0500)]
Add logo svg
Nikolai Kondrashov [Mon, 8 Nov 2010 16:38:40 +0000 (19:38 +0300)]
Clean up .gitignore files
Sort the contents and update .gitignore files to hide generated files from
git status output.
Signed-off-by: Nikolai Kondrashov <spbnick@gmail.com>
Peter Hutterer [Tue, 9 Nov 2010 06:31:30 +0000 (16:31 +1000)]
README: fix a few typos
And one in the main.tex spec document.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Tiago Vignatti [Wed, 10 Nov 2010 00:42:35 +0000 (02:42 +0200)]
compositor: add safety check when EGL fails to initialize
offending message:
Program received signal SIGSEGV, Segmentation fault.
create_pointer_images (ec=0x619f10) at compositor.c:240
240 glEGLImageTargetTexture2DOES(GL_TEXTURE_2D,
Signed-off-by: Tiago Vignatti <tiago.vignatti@nokia.com>
Jesse Barnes [Mon, 8 Nov 2010 19:51:12 +0000 (11:51 -0800)]
compositor: put console into KD_GRAPHICS mode at vt enter time
This will keep the kernel from changing graphics state out from under us
(e.g. blanking).
Kristian Høgsberg [Mon, 8 Nov 2010 20:45:55 +0000 (15:45 -0500)]
Bring gears example up to date
Must have gears.
Johan Bilien [Sun, 7 Nov 2010 14:52:11 +0000 (09:52 -0500)]
Fixed a bogus call to cairo_destroy
Nikolai Kondrashov [Mon, 8 Nov 2010 09:59:53 +0000 (12:59 +0300)]
Fix Wayland build instructions
Replace aclocal; autoconf invocation in Wayland build instructions with
an up-to-date ./autogen.sh invocation.
Signed-off-by: Nikolai Kondrashov <spbnick@gmail.com>
Kristian Høgsberg [Mon, 8 Nov 2010 13:54:35 +0000 (08:54 -0500)]
Install and dist udev rules file
Javier Jardón [Sat, 6 Nov 2010 00:55:27 +0000 (01:55 +0100)]
Update autotools configuration
Use new libtool syntax and cleaning the code a bit
Kristian Høgsberg [Sun, 31 Oct 2010 18:24:39 +0000 (14:24 -0400)]
Add /wayland so we pick up generated header files
Reported by Benjamin Franzke.
Chia-I Wu [Fri, 29 Oct 2010 07:20:18 +0000 (15:20 +0800)]
Workaround an xcb-dri2 bug.
xcb_dri2_connect_device_name generated by xcb-proto 1.6 is broken. It
only works when the length of the driver name is a multiple of 4.
Chia-I Wu [Fri, 29 Oct 2010 07:20:17 +0000 (15:20 +0800)]
Make sure there is a current context.
The context of a display is shared with the cairo device.
cairo_acquire_device should be called whenever OpenGL calls are made.
Chia-I Wu [Fri, 29 Oct 2010 07:20:16 +0000 (15:20 +0800)]
Use glTexSubImage to update the pixels.
glTexImage causes respecification. The DRM buffer a client renders to
will be different from that used to create the wl_buffer.
Kristian Høgsberg [Wed, 27 Oct 2010 19:02:51 +0000 (15:02 -0400)]
List libtoytoolkit.la before libwayland-client.la on the link line
Fixes link order for --as-needed linking.
Kristian Høgsberg [Tue, 26 Oct 2010 15:26:44 +0000 (11:26 -0400)]
Add a geometry option for x11 compositor
Kristian Høgsberg [Tue, 26 Oct 2010 04:02:20 +0000 (00:02 -0400)]
Add small client for testing shm surfaces
Kristian Høgsberg [Mon, 25 Oct 2010 15:40:03 +0000 (11:40 -0400)]
Fall back to cairo image backend and shm surface if we don't have cairo gl
Kristian Høgsberg [Mon, 25 Oct 2010 14:28:23 +0000 (10:28 -0400)]
Remove leftover of fds_in_tail hack
It's breaking the case of multiple fds in one buffer.
Kristian Høgsberg [Sat, 16 Oct 2010 02:47:09 +0000 (22:47 -0400)]
Plug in no-op drm buffer attach function
Kristian Høgsberg [Tue, 12 Oct 2010 22:04:57 +0000 (18:04 -0400)]
Delete leftover makefile debugging
Kristian Høgsberg [Tue, 12 Oct 2010 21:24:20 +0000 (17:24 -0400)]
Use automake
Kristian Høgsberg [Tue, 12 Oct 2010 19:48:29 +0000 (15:48 -0400)]
Add more cursors from the DMZ theme
Kristian Høgsberg [Tue, 12 Oct 2010 17:53:13 +0000 (13:53 -0400)]
Fix clients include path after moving files around
Kristian Høgsberg [Fri, 8 Oct 2010 13:32:55 +0000 (09:32 -0400)]
Use GL_BGRA_EXT for shm texture uploads
Kristian Høgsberg [Fri, 8 Oct 2010 12:58:51 +0000 (08:58 -0400)]
A couple more TODO items
Kristian Høgsberg [Thu, 7 Oct 2010 01:17:40 +0000 (21:17 -0400)]
Add a shm buffer sharing mechanism
Kristian Høgsberg [Fri, 24 Sep 2010 14:01:18 +0000 (10:01 -0400)]
Fix EGLImageKHR leak in wl_buffer destroy
Kristian Høgsberg [Fri, 17 Sep 2010 13:04:46 +0000 (09:04 -0400)]
Fix screenshoot.c type in Makefile
Kristian Høgsberg [Thu, 16 Sep 2010 13:10:17 +0000 (09:10 -0400)]
Add autogen.sh
Kristian Høgsberg [Tue, 14 Sep 2010 20:23:24 +0000 (16:23 -0400)]
Use scanner to generate screenshooter client code as well
Kristian Høgsberg [Tue, 14 Sep 2010 19:53:32 +0000 (15:53 -0400)]
Use scanner for screenshooter protocol
Kristian Høgsberg [Tue, 14 Sep 2010 19:52:43 +0000 (15:52 -0400)]
scanner: Use protocol name for #include guards
Kristian Høgsberg [Tue, 14 Sep 2010 19:39:45 +0000 (15:39 -0400)]
Add timestamp to pointer image attach request
This lets the server discard requests received after the pointer has
exited and the re-entered a surface.
Kristian Høgsberg [Tue, 14 Sep 2010 17:44:37 +0000 (13:44 -0400)]
Consolidate notes from a few files in TODO
Kristian Høgsberg [Tue, 14 Sep 2010 16:41:26 +0000 (12:41 -0400)]
Consolidate NOTES and README
Kristian Høgsberg [Tue, 14 Sep 2010 15:25:55 +0000 (11:25 -0400)]
Copy over updated build instructions from the google group
Kristian Høgsberg [Tue, 14 Sep 2010 15:13:18 +0000 (11:13 -0400)]
Move core protocol libraries into wayland/ subdirectory
Kristian Høgsberg [Tue, 14 Sep 2010 14:45:00 +0000 (10:45 -0400)]
Move example compositor to subdirectory
Kristian Høgsberg [Mon, 13 Sep 2010 20:23:52 +0000 (16:23 -0400)]
Add support for more types of input devices
Well, maybe not support, but we at least recognize touchpads and touchscreens
and try to work with them.
Kristian Høgsberg [Fri, 10 Sep 2010 12:51:09 +0000 (08:51 -0400)]
Remove non-gles2 glEnable(GL_TEXTURE_2D) call
Kristian Høgsberg [Wed, 8 Sep 2010 02:15:22 +0000 (22:15 -0400)]
Marshall NULL strings correctly
Kristian Høgsberg [Wed, 8 Sep 2010 02:06:54 +0000 (22:06 -0400)]
Change debug format to not confuse object id and message parameters
Kristian Høgsberg [Wed, 8 Sep 2010 02:01:32 +0000 (22:01 -0400)]
Dont post damage event from window_copy_surface
We always call this between window_draw() and attaching the window surface
so the surface we're copying to isn't visible.
Kristian Høgsberg [Wed, 8 Sep 2010 01:50:06 +0000 (21:50 -0400)]
Only set pointer image when it changes
Kristian Høgsberg [Wed, 8 Sep 2010 01:40:31 +0000 (21:40 -0400)]
Log emitted events as well in debug mode
Kristian Høgsberg [Wed, 8 Sep 2010 01:34:45 +0000 (21:34 -0400)]
Return the closure from wl_connection_vmarshal()
And provide a function to write it to a connection.
Kristian Høgsberg [Wed, 8 Sep 2010 01:08:59 +0000 (21:08 -0400)]
Drop wl_surface_post_event() helper
Now wl_client_post_event() is the only entry point for sending out events.
Kristian Høgsberg [Wed, 8 Sep 2010 00:57:40 +0000 (20:57 -0400)]
Fill out a closure when sending events as well
Kristian Høgsberg [Tue, 7 Sep 2010 21:03:17 +0000 (17:03 -0400)]
Fix integer signedness and fd size confusion
Kristian Høgsberg [Tue, 7 Sep 2010 21:00:34 +0000 (17:00 -0400)]
Demarshal all arguments from protocol buffer
Kristian Høgsberg [Tue, 7 Sep 2010 19:51:41 +0000 (15:51 -0400)]
Keep strings and arrays in the buffer when demarshalling
Avoids the malloc+copy, and is a step towards using the closure for
marshalling too.
Kristian Høgsberg [Tue, 7 Sep 2010 19:33:56 +0000 (15:33 -0400)]
Send terminating nul character when sending strings
Kristian Høgsberg [Tue, 7 Sep 2010 19:26:39 +0000 (15:26 -0400)]
Move marshal/demarshal buffer into struct wl_closure
Kristian Høgsberg [Tue, 7 Sep 2010 14:58:19 +0000 (10:58 -0400)]
Add protocol debugging facility
Kristian Høgsberg [Tue, 7 Sep 2010 14:58:03 +0000 (10:58 -0400)]
TODO editing
Kristian Høgsberg [Sat, 4 Sep 2010 02:04:35 +0000 (22:04 -0400)]
Update TODO
Kristian Høgsberg [Fri, 3 Sep 2010 19:15:33 +0000 (15:15 -0400)]
Drop wl_display_set_compositor() special case
Kristian Høgsberg [Fri, 3 Sep 2010 18:46:38 +0000 (14:46 -0400)]
Replace commit/ack/frame protocol with simpler sync and frame callbacks
Kristian Høgsberg [Fri, 3 Sep 2010 00:55:16 +0000 (20:55 -0400)]
Add convenience functions for posting display events