Kristian Høgsberg
0e696478a9
Handle new transform argument in wl_output.geometry event
13 years ago
Pekka Paalanen
1da1b8f3f1
Rewrite shm buffer file allocation v2
...
We had duplicated code in many places, using hardcoded paths for
temporary files into more than one path. Some cases did not bother with
O_CLOEXEC, and all hardcoded paths that might not exist.
Add an OS helper function for creating a unique anonymous file with
close-on-exec semantics. The helper uses $XDG_RUNTIME_DIR as the
directory for a file.
This patch unifies the buffer file creation in both Weston and the
clients.
As simple clients are better not linking to libshared, as it would
require e.g. Cairo, they pull the OS compatibility code directly.
Android does not have mkostemp(), so a configure test is added for it,
and a fallback used if it is not available.
Changes in v2:
remove all the alternate possible directory definitions and use
XDG_RUNTIME_DIR only, and fail is it is not set.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
13 years ago
Scott Moreau
2074f1d788
screenshooter: Don't assume output offsets start at zero
13 years ago
Scott Moreau
72c2372148
screenshooter: Move buffer assembly to client side
13 years ago
Scott Moreau
062be7ec93
screenshooter: Grab pixel data directly before buffer swap
13 years ago
Kristian Høgsberg
1a36156972
screenshot.c: Fix up a few stylistic issues
13 years ago
Scott Moreau
80d27b7e06
screenshooter: Properly handle multiple outputs.
13 years ago
Kristian Høgsberg
16626282fd
clients: Use new shm interface
13 years ago
Kristian Høgsberg
f02a649a3c
Consolidate image loading code and move to shared/
13 years ago
Kristian Høgsberg
8e81df4503
Use new format codes
13 years ago
Pekka Paalanen
50719bce2a
Fix inconsistent #include style
...
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
13 years ago
Kristian Høgsberg
3a69627f43
window: Stop using glib mainloop in toy toolkit
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
a8d1fa762e
clients: Bring clients up to date
13 years ago
Kristian Høgsberg
8417d432f5
screenshot: A couple of minor tweaks
14 years ago
Tiago Vignatti
4d0d2037ea
screenshot: use gdk-pixbuf for writing png images
...
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
14 years ago
Kristian Høgsberg
8f0ce05f52
compositor: Send out more detailed output events
14 years ago
Kristian Høgsberg
8544903741
compositor: Screenhoot into a client provided shm buffer
...
This moves the png writing part to the client and removes the gdk-pixbuf
dependency from the compositor.
14 years ago
Kristian Høgsberg
cf57dc52ff
Update to work with scanner that doesn't hardcode wl_*
...
This lets us drop the wl_ prefix for the un-officual screenshooter protocol.
14 years ago
Kristian Høgsberg
91342c6081
Switch to new subscribe protocol and wayland-egl
14 years ago
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.
14 years ago
Benjamin Franzke
35fd2a8cc6
wayland_client: rename wl_display_create to wl_display_connect
...
Avoid conflict when using wayland-{server,client} together.
14 years ago
Kristian Høgsberg
3dd66d66a3
Use scanner to generate screenshooter client code as well
14 years ago
Kristian Høgsberg
4fe1a3ed3a
Don't track globals in the client lib, just send out events
...
Users of the client library must install an global handler to get access
to globals.
15 years ago
Kristian Høgsberg
b2a432ef18
Move clients to subdirectory
15 years ago
Kristian Høgsberg
03fd86b042
Read connection events in screenshot.c
16 years ago
Kristian Høgsberg
8049cbb88a
Also check for interface version wl_display_get_object_id().
16 years ago
Kristian Høgsberg
dc0f355f0a
Fix API to always include socket name length.
16 years ago
Kristian Høgsberg
e2ce43a9be
Fix namespace convention for glib source.
16 years ago
Kristian Høgsberg
ffd710e653
Put Wayland under the MIT license.
16 years ago
Kristian Høgsberg
f53f4bbd52
Quit screenshooter when idle.
16 years ago
Kristian Høgsberg
1e4b86af1a
Expose screenshooting as an interface, drop SIGUSR hack.
...
This pulls in a bit of extra infrastructure for discovering adertised objects on the
client side.
16 years ago