Kristian Høgsberg
191454e6c2
compositor: Rename scanout surfaces
...
Let's call the surface that's about to be pageflipped 'pending' and the
one we're currently showing 'scanout'.
13 years ago
Ander Conselvan de Oliveira
f1621d2945
compositor: don't release the front buffer after page flip
...
On repaint, wlsc_output_repaint will replace output->scanout_buffer with
the new front buffer and then output->present() will cause this buffer
to be displayed. When wlsc_output_finish_frame is called, the
compositor will send a release buffer event for output->scanout_buffer
which is actually the front buffer now.
This patch changes this code to release the previous scanout_buffer
instead of the front buffer on wlsc_output_finish_frame.
Signed-off-by: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
13 years ago
Kristian Høgsberg
d6e5525a20
x11: Manage xserver focus better
13 years ago
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."
13 years ago
Kristian Høgsberg
7584062153
Add a desktop_shell interface
...
Mostly a toy-thing for now, to allow prototyping a desktop-shell client.
13 years ago
Tiago Vignatti
faee80196f
compositor: choose tty from command line
...
This is a backend option, so you should use something like '-otty='.
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
13 years ago
Benjamin Franzke
b826302efb
Remove return type from wlsc_compositor_shutdown
...
Fixes "control reaches end of non-void function" warning
and is not needed (yet).
13 years ago
Kristian Høgsberg
f389cacc20
Move away from visuals and just use EGLConfigs or shm format tokens
13 years ago
Kristian Høgsberg
904055a652
compositor: Make all exported objects wl_resources
13 years ago
Kristian Høgsberg
334182062f
Use the new wl_callback interface
13 years ago
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>
13 years ago
Kristian Høgsberg
86ec8e80d8
compositor: Use systemd seats for input devices as well
14 years ago
Kristian Høgsberg
3cad436a91
xserver: Clean up X server socket on exit
14 years ago
Kristian Høgsberg
a691aeefd7
compositor: Track opaque region of a surface
14 years ago
Kristian Høgsberg
b8a983395d
compositor: Add helper to damage surface below
14 years ago
Kristian Høgsberg
8b72f60478
compositor: Clip away obscured damage
14 years ago
Kristian Høgsberg
20300ba112
compositor: Accumulate damage in per-surface regions
14 years ago
Kristian Høgsberg
27da538ab5
compositor: Add socket based activation for X server
14 years ago
Kristian Høgsberg
e75cb7f64b
compositor: Store the output rectangle in a region
14 years ago
Kristian Høgsberg
ef04414f39
compositor: Repaint immediately after pageflip finishes
14 years ago
Benjamin Franzke
0628626d55
Implement buffer.release event
14 years ago
Kristian Høgsberg
8f0ce05f52
compositor: Send out more detailed output events
14 years ago
Kristian Høgsberg
9396fc515b
compositor-drm: Fix vt switching
...
Don't take input or render while switched away, drop and set master correctly.
14 years ago
Kristian Høgsberg
e4c40a4734
compositor: Disable hw cursor if we're texturing the cursor
14 years ago
Kristian Høgsberg
1c5621840b
compositor: Split backends into modules
14 years ago
Kristian Høgsberg
269c78286f
compositor: Rename tweener to spring
...
Because it's a spring model, not a tweener.
14 years ago
Kristian Høgsberg
0bc0e24968
compositor: Group matrix and inverse in struct wlsc_transform
14 years ago
Kristian Høgsberg
d880e14f8a
compositor: Export matrix functions
14 years ago
Kristian Høgsberg
2e94d1120a
compositor: Remove unused surface matrix, add optional transform
14 years ago
Kristian Høgsberg
4a9be13d2a
Tweak tweener constants and add friction parameter
14 years ago
Kristian Høgsberg
fac11d25e4
Remove unused surface->buffer field
...
If we make sure the link is either on a list or initialized, we can alway
just remove it.
14 years ago
Kristian Høgsberg
b41d76c151
compositor: Use libpng directly instead of gdb-pixbuf
14 years ago
Benjamin Franzke
e5b3b2601c
Cast fd's to intptr_t before casting to EGLNativeDisplay
...
Fixes warnings on 64bit.
Also use wlsc_compositor::destroy_image in compositor-openwfd.
14 years ago
Kristian Høgsberg
b5819dc61d
compositor: Stop using EGL_EGLEXT_PROTOTYPES and look up extension functions
14 years ago
Benjamin Franzke
fab5ec1215
compositor: Use stride/4 as width for shm textures
14 years ago
Kristian Høgsberg
02ec0a5d3a
compositor: Support loadable shells
...
The shell module is responsible for implementing the higher level
compositor behavior. We default to the desktop-lite shell built in to
the compositor.
14 years ago
Kristian Høgsberg
cce1aecd3c
compositor: Fade to black on idle timeout
14 years ago
Kristian Høgsberg
7ffc4488f4
compositor: Refactor shader setup a bit
14 years ago
Kristian Høgsberg
e10a5d9fea
compositor: Implement a simple screensaver feature
...
We'll need protocol for screensaver inhibit requests.
14 years ago
Benjamin Franzke
315b3dc73b
Make use of wayland-server shm common code
14 years ago
Benjamin Franzke
bab41fb70c
compositor: Use surface_attached_to list for shm-buffers
14 years ago
Benjamin Franzke
0c347f0d72
compositor: Add wlsc_shm_buffer_attach
14 years ago
Benjamin Franzke
5d00709931
compositor: Add OpenWF Display backend
14 years ago
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.
14 years ago
Benjamin Franzke
431da9a4cc
Make use of a hardware cursor in compositor-drm
14 years ago
Benjamin Franzke
1178a3ce5c
compositor(-drm): Pageflip to fullscreen surfaces
14 years ago
Kristian Høgsberg
547cadf375
Move more switcher details to switcher.c
14 years ago
Kristian Høgsberg
30021d7993
Move switcher behaviour into switcher.c
14 years ago
Kristian Høgsberg
0793756d52
Move shell bindings to shell.c
14 years ago
Kristian Høgsberg
a8ec86395d
Extend wlsc_binding to cover buttons too
14 years ago