Commit Graph

41 Commits

Author SHA1 Message Date
Kristian Høgsberg
96aa7da24a Change remaining GPLv2 headers to MIT
The files in question are copyright Benjamin Franzke (who agrees),
Intel Corporation, Red Hat and myself.  On behalf of Red Hat,
Richard Fontana says:

   "Therefore, to the extent that Red Hat, Inc. has any copyright
    interest in the files you cited as of this date (compositor-drm.c,
    compositor.c, compositor.h, screenshooter.c in
    http://cgit.freedesktop.org/wayland/wayland-demos/tree/compositor),
    Red Hat hereby elects to apply the CC0 1.0 Universal Public Domain
    Dedication to such copyrighted material.  See:
    http://creativecommons.org/publicdomain/zero/1.0/legalcode .

    Thanks,
    Richard E. Fontana
    Open Source Licensing and Patent Counsel
    Red Hat, Inc."
2011-09-19 17:29:24 -04:00
Benjamin Franzke
91eacca38b Remove egl display type setenv hack
No longer needed with mesa 7.12-devel egl display autodetection.
2011-08-31 16:25:18 -04:00
Kristian Høgsberg
f389cacc20 Move away from visuals and just use EGLConfigs or shm format tokens 2011-08-31 16:21:38 -04:00
Kristian Høgsberg
f790c79ec7 Use wl_display_bind() for binding to globals 2011-08-29 17:12:36 -04:00
Kristian Høgsberg
334182062f Use the new wl_callback interface 2011-08-29 17:12:36 -04:00
Matt Roper
361d2ade02 Update compositor shutdown code
Adds a general wlsc_compositor_shutdown() function that all output
backends call when shutting down.  wlsc_compositor_shutdown() will call
a new 'destroy' method of each output to perform backend-specific
cleanup (e.g., turning off the hardware cursor in the DRM compositor).

Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
2011-08-29 17:12:27 -04:00
Kristian Høgsberg
8f0ce05f52 compositor: Send out more detailed output events 2011-06-21 11:16:58 -04:00
Kristian Høgsberg
7c47667921 compositor-wayland: Update to new APIs 2011-06-20 10:45:57 -04:00
Egbert Eich
e7b8d9055e compositor: Set EGL_PLATFORM env variable for each backend.
I may have missed something, but - since the Wayland compositor
already picks a platform backend, opens a connection and initializes the
backend specific display data structure it doesn't make sense
to let egl pick a platform. If it picks a different one the
display specific data structure will most likely not match.
Thus determine the platform in the Wayland rendering backend by setting
the EGL_PLATFORM env variable.
For the client any other platform than 'wayland' doesn't seem to make
sense.
I'm not sure if I've got the the platform ofr openfwd right.

Signed-off-by: Egbert Eich <eich@freedesktop.org>
2011-05-10 16:42:08 -04:00
Kristian Høgsberg
6c709a3e4f Fix warnings and symbol visibility from missing CFLAGS 2011-05-06 14:52:41 -04:00
Kristian Høgsberg
e4c40a4734 compositor: Disable hw cursor if we're texturing the cursor 2011-05-06 14:04:21 -04:00
Kristian Høgsberg
1c5621840b compositor: Split backends into modules 2011-05-02 22:09:20 -04:00
Benjamin Franzke
080ab6c1be compositor-wayland: Fix interface renames (prefix) 2011-05-02 12:22:40 -04:00
Kristian Høgsberg
95d843de11 Also fix compositor-wayland event handler 2011-04-22 13:01:26 -04:00
Kristian Høgsberg
91342c6081 Switch to new subscribe protocol and wayland-egl 2011-04-20 14:20:02 -04:00
Benjamin Franzke
66aa235b4c Optimize fullscreen scanout abit
Use the drm fb_id used for the scanout-test
as well for the corresponding pageflip.

Move most of the scanout details into compositor-drm.
2011-04-20 17:30:12 +02:00
Benjamin Franzke
431da9a4cc Make use of a hardware cursor in compositor-drm 2011-04-20 15:29:35 +02:00
Benjamin Franzke
1178a3ce5c compositor(-drm): Pageflip to fullscreen surfaces 2011-04-19 09:05:08 +02:00
Benjamin Franzke
ec4d342aa9 Support per surface frame events
This fixes tearing with multi head.
2011-03-17 11:54:35 +01:00
Benjamin Franzke
eefc36c760 compositor-drm: Fix multi head rendering 2011-03-13 15:02:58 -04:00
Kristian Høgsberg
d28ab36fe3 compositor-wayland: Ask for ES2 in the config 2011-03-02 11:36:30 -05:00
Benjamin Franzke
c649a92549 compositor: Remove drm.c, use shm.c for pointer images 2011-03-02 11:31:46 -05:00
Benjamin Franzke
be01456887 compositor-wayland: Use wayland-egl window surfaces 2011-03-01 16:21:02 +01:00
Benjamin Franzke
5b2cb6f911 compositor: Generate Framebuffer in the backends 2011-03-01 16:21:01 +01:00
Benjamin Franzke
1b765ffb8c compositor: Add flags parameter to wlsc_output_init
Currently available flags:
 - WL_OUTPUT_FLIPPED
2011-03-01 16:21:01 +01:00
Kristian Høgsberg
af82bea253 compositor-wayland: Handle keyboard focus too 2011-01-27 20:18:17 -05:00
Kristian Høgsberg
93331ff40a compositor: Forward pointer focus notification from compostor backend
This lets the compositor place the pointer sprite correctly when it receives
pointer focus and allows it to send pointer focus to any client that might
receive pointer focus as the compositor receives it.
2011-01-26 20:35:09 -05:00
Benjamin Franzke
7c427a9481 compositor-wayland: Remove unused variable 2011-01-23 14:25:07 -05:00
Benjamin Franzke
ecfb2b93f3 compositor-wayland: Assign func pointers pre init 2011-01-16 21:09:04 -05:00
Kristian Høgsberg
8525a50362 Move buffer creation and buffer details into drm.c and shm.c 2011-01-14 16:20:21 -05:00
Kristian Høgsberg
cbe6f04388 Fix compositor-wayland 2010-12-17 09:54:45 -05:00
Kristian Høgsberg
82da52b15b Update surface.attach and change surface.map to surface.map_toplevel
The new map_toplevel() request no longer specifies a position and takes
the size from the attached buffer.  The attach request now takes a
position relative to the top-left corner of the old buffer to let
clients specify the relative position of the new buffer.
2010-12-17 09:53:12 -05:00
Kristian Høgsberg
9c3e8d734e Move grab state to struct wl_input_device 2010-12-08 09:48:52 -05:00
Kristian Høgsberg
f8fc08f771 Add origin information to output.geometry event 2010-12-01 20:10:10 -05:00
Kristian Høgsberg
caa6442556 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.
2010-12-01 16:53:15 -05:00
Kristian Høgsberg
2bb3ebe1e4 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.
2010-12-01 16:53:01 -05:00
Kristian Høgsberg
0611e3efc2 Indentation nit-picking 2010-12-01 10:21:15 -05:00
Kristian Høgsberg
06bc26401c Fix warnings from adding -Wall back 2010-12-01 09:50:16 -05:00
Kristian Høgsberg
3ada7ec83a compositor-wayland: Call wlsc_compositor_finish_frame from frame callback 2010-12-01 09:42:57 -05:00
Kristian Høgsberg
4203df1fd5 compositor-wayland: Use glFlush() not glFinish() after rendering frame 2010-12-01 09:40:58 -05:00
Benjamin Franzke
ec2e64224b Add wayland backend for compositor (nested) 2010-11-29 17:38:36 -05:00