summaryrefslogtreecommitdiff
path: root/clients/screenshot.c
AgeCommit message (Collapse)AuthorFilesLines
2016-03-17clients & tests: Unify multiple definitions of x*alloc and related functionsBryce Harrington1-15/+1
Direct fail_on_null calls now produce output like: [weston-info] clients/weston-info.c:714: out of memory xmalloc, et al produce output on failure like: [weston-info] out of memory (-1) Signed-off-by: Bryce Harrington <bryce@osg.samsung.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
2015-11-19Rename screenshooter protocol to weston_screenshooterJonas Ådahl1-8/+13
Due to the effort of moving a way from non-prefixed protocols, rename the weston specific screenshooter protocol to weston_screenshooter. Signed-off-by: Jonas Ådahl <jadahl@gmail.com> Reviewed-by: Mariusz Ceier <mceier+wayland@gmail.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
2015-06-15Remove redundant #include path component.Jon Cruz1-1/+1
Using the parent '../' path component in #include statements makes the codebase more rigid and is redundant due to proper -I use. Signed-off-by: Jon A. Cruz <jonc@osg.samsung.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
2015-06-15clients: Update boilerplate from MIT X11 license to MIT Expat licensesBryce Harrington1-16/+17
2013-08-12screenshooter: Add missing newline and use program_invocation_short_nameKristian Høgsberg1-2/+2
2013-08-12screenshooter: Only link to $(CLIENT_LIBS) not libtoytoolkit.laKristian Høgsberg1-1/+19
This application doesn't use toytoolkit, so don't link to it. We have to add a copy of xmalloc, to link without toytoolkit.
2013-08-07clients: use xmalloc in more placesBrian Lovin1-1/+1
For the clients continue to use xmalloc() to simplify OOM-handling. Signed-off-by: Brian Lovin <brian.j.lovin@intel.com>
2013-07-29screenshot: Drop extraneous 'is' to improve warning msg grammarBryce W. Harrington1-1/+1
Signed-off-by: Bryce Harrington <b.harrington@samsung.com>
2013-02-13screenshot: Print warning if we're not launched from westonKristian Høgsberg1-0/+7
weston-screenshooter is a helper binary that weston launches to write the screenshot to disk. If somebody tries to launch it by hand, print a warning and mention the screenshot keybinding.
2013-01-24clients: add global_remove handler stubsPekka Paalanen1-1/+8
All the clients here were missing the global_remove handler. Because window.c did not have it, weston-desktop-shell and weston-keyboard segfaulted on compositor exit, as they received some wl_registry.global_remove events. Add more or less stub global_remove handlers, so that clients do not crash on such events. Toytoolkit and all applications would need a lot more code to properly handle the global object removal. Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
2012-10-10Update to new fd and wl_registry APIsKristian Høgsberg1-7/+15
This commit updates the clients and the wayland compositor backend to use the new wl_registry mechanism and the thread safe fd API.
2012-08-29screenshot: Use correct buffer size for transformed outputs.Scott Moreau1-0/+6
This is a workaround for screenshots with transformed outputs. It reorders the output positions so the correct buffer size is determined for the final image. This assumes the outputs are in succession on the x axis. The outputs are rendered in their transformed state.
2012-07-22Handle new transform argument in wl_output.geometry eventKristian Høgsberg1-1/+2
2012-06-06Rewrite shm buffer file allocation v2Pekka Paalanen1-11/+6
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>
2012-04-20screenshooter: Don't assume output offsets start at zeroScott Moreau1-6/+32
2012-04-20screenshooter: Move buffer assembly to client sideScott Moreau1-13/+31
2012-04-20screenshooter: Grab pixel data directly before buffer swapScott Moreau1-2/+17
2012-04-04screenshot.c: Fix up a few stylistic issuesKristian Høgsberg1-20/+8
2012-04-04screenshooter: Properly handle multiple outputs.Scott Moreau1-9/+60
2012-04-03clients: Use new shm interfaceKristian Høgsberg1-3/+5
2012-03-12Consolidate image loading code and move to shared/Kristian Høgsberg1-14/+8
2012-01-11Use new format codesKristian Høgsberg1-1/+1
2011-11-22Fix inconsistent #include stylePekka Paalanen1-1/+1
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
2011-09-19window: Stop using glib mainloop in toy toolkitKristian Høgsberg1-1/+0
2011-08-31Move away from visuals and just use EGLConfigs or shm format tokensKristian Høgsberg1-8/+2
2011-08-29clients: Bring clients up to dateKristian Høgsberg1-26/+7
2011-07-27screenshot: A couple of minor tweaksKristian Høgsberg1-3/+4
2011-07-26screenshot: use gdk-pixbuf for writing png imagesTiago Vignatti1-2/+19
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
2011-06-21compositor: Send out more detailed output eventsKristian Høgsberg1-2/+19
2011-05-02compositor: Screenhoot into a client provided shm bufferKristian Høgsberg1-14/+99
This moves the png writing part to the client and removes the gdk-pixbuf dependency from the compositor.
2011-04-20Update to work with scanner that doesn't hardcode wl_*Kristian Høgsberg1-4/+4
This lets us drop the wl_ prefix for the un-officual screenshooter protocol.
2011-04-20Switch to new subscribe protocol and wayland-eglKristian Høgsberg1-1/+1
2010-12-01Create socket in /var/run/user/${HOME}Kristian Høgsberg1-3/+1
Use the runtime dir from XDG Base Directory Specification for creating the socket in a directory only the user can read and write.
2010-11-29wayland_client: rename wl_display_create to wl_display_connectBenjamin Franzke1-1/+1
Avoid conflict when using wayland-{server,client} together.
2010-09-14Use scanner to generate screenshooter client code as wellKristian Høgsberg1-26/+5
2010-08-10Don't track globals in the client lib, just send out eventsKristian Høgsberg1-35/+30
Users of the client library must install an global handler to get access to globals.
2010-06-04Move clients to subdirectoryKristian Høgsberg1-0/+107