summaryrefslogtreecommitdiff
path: root/swaygrab
AgeCommit message (Collapse)AuthorLines
2017-12-14Adaptions for API change in json-c v0.130.15.1Furkan Sahin-5/+4
Lift restriction on json-c <= 0.12.1 ipc-server: Acquire ownership of referenced json_object properly When adding a referenced json_object with an unknown lifetime to another json_object, it must be done with a wrapped call to json_object_get() to acquire the ownership of that json_object.
2017-12-17Revert "Merge remote-tracking branch 'besser82/bugfix/json-c' into 0.15"Furkan Sahin-4/+5
This reverts commit a427d79c013a14ce196ca8dac5644ff2c76637ca, reversing changes made to f896cb48106e704a57f93790b46fa7e183d646eb.
2017-12-14Adaptions for API change in json-c v0.13Furkan Sahin-5/+4
2017-10-22swaygrab: Add some error handling.Furkan Sahin-1/+11
- If IPC response contains `success: false`, abort and print error message. - If tree has no nodes, abort with error msg instead of segfaulting.
2017-10-22swaygrab: Increase max depth of JSON parsing to 256. Prevent segfault if IPC ↵Furkan Sahin-1/+10
response can't be parsed. The default max nesting depth of json-c is 32, which can cause some valid trees to fail to be parsed, so increase that. Also instead of segfaulting, just abort and print the error returned by json-c.
2017-10-06Fix github links in docFurkan Sahin-1/+1
2017-09-11fixes a hanging swaygrabFurkan Sahin-4/+9
https://github.com/SirCmpwn/sway/issues/1350 is fixed with this. The commit that change swaygrab to use fork instead of Popen tried to write to the read end of the pipe in the child branch and exec in the parent branch. This commit fixes both of those and closes the write fd after writing, so convert actually exits.
2017-06-20Use fork in swaygrab instead of popen.Furkan Sahin-10/+21
2017-07-04Make asciidoc (and man pages) optionalFurkan Sahin-1/+3
And remove it from the build
2017-06-17FFmpeg options for swaygrabFurkan Sahin-4/+20
2017-06-05FreeBSD fixesFurkan Sahin-2/+2
Increase _POSIX_SOURCE value where needed. Increase _XOPEN_SOURCE value where needed. Conditionally link to libcap (only on Linux). Possibly some trailing whitespace fixes (automatic).
2017-04-26Add -DVERSION flag for release version numbersFurkan Sahin-5/+1
2017-03-10UnGNUify the codebaseFurkan Sahin-0/+4
2017-02-13Document swaygrab -fFurkan Sahin-1/+4
2016-09-18implement "focused container" feature for swaygrabFurkan Sahin-40/+183
2016-04-28Fix missing include pathsFurkan Sahin-0/+1
When headers were installed in more sofisticated places (but package config knows it right), it revealed missing paths in CMake configuration. Lets fix it.
2016-03-29Fix a typo in swaygrab manualFurkan Sahin-1/+1
2016-03-28Added -R option to getopt opt_stringFurkan Sahin-1/+1
2016-03-24CMake: add missing wlc include dir for common and swaygrabFurkan Sahin-0/+1
2016-02-26Correctly exit sway on errors.Furkan Sahin-2/+2
Calling `exit` in sway_terminate prevents sway from correctly shutting down (freeing data, cleanly terminating the ipc server, etc.). A better way is to exit straight away if the failure occurs before `wlc_run` and use sway_abort as usual if it occur when wlc is running.
2016-01-24use log10 in numlenFurkan Sahin-0/+1
2016-01-23Revert "s/numlen/log10/g"Furkan Sahin-3/+2
This reverts commit 4d8a071134db4ced1870c2d3177fb8a95e249567.
2016-01-23s/numlen/log10/gFurkan Sahin-2/+3
2016-01-17Copy filename from argvFurkan Sahin-1/+1
Fix #449
2016-01-05Fix whitespace issues.Furkan Sahin-1/+1
2015-12-22swaygrab: Fix memory leak when recording videosFurkan Sahin-0/+1
2015-12-17swaygrab: add default output filename.Furkan Sahin-4/+23
With this it's possible to run `swaygrab` without a filename argument. With no filename supplied it will use a default name based on the current time. The default file will get the extension `png` for screenshots and `webm` for video capture.
2015-12-17swaygrab: update man pageFurkan Sahin-5/+9
2015-12-17swaygrab: make focused output defaultFurkan Sahin-8/+47
This makes swaygrab use the currently focused output as source if no other output is defined with the `-o, --output <output>` option.
2015-12-14Move numlen(1) to sway/util.cFurkan Sahin-10/+1
2015-12-02move manpages to subfoldersFurkan Sahin-0/+60
2015-12-02cmake: build common code only onceFurkan Sahin-5/+2
This creates (static) libraries for protocols/, common/, and wayland/.
2015-12-01cmake: remove subprojectsFurkan Sahin-4/+2
2015-12-01cmake: use out-of-source buildFurkan Sahin-2/+0
2015-12-01cmake: use tabs instead of spacesFurkan Sahin-7/+7
2015-12-01cmake: style consistencyFurkan Sahin-4/+8
2015-12-01cmake: convert all cmake commands to lowercaseFurkan Sahin-3/+3
2015-11-28Fix option parsingFurkan Sahin-4/+2
Using 'flag' results in duplicate code paths for short and long options. This broke the -q short option in swaymsg, because there was: {"quiet", no_argument, &quiet, 'q'} Which will set quiet to 'q' and return 0, not 'q'.
2015-11-28swaygrab: Add --help option that prints usageFurkan Sahin-1/+3
2015-11-28swaygrab: Print usage and exit on unknown optionsFurkan Sahin-0/+12
2015-11-28Use macros for exit valuesFurkan Sahin-2/+2
2015-11-28Remove extraneous logging from swaygrabFurkan Sahin-1/+0
2015-11-28Rearrange logging headersFurkan Sahin-0/+1
Ref #270
2015-11-27Fix uninitialized variable warning in swaygrabFurkan Sahin-1/+1
2015-11-27Add ffmpeg capture to swaygrab (with limitations)Furkan Sahin-10/+104
This needs to be multithreaded to have any sort of realistic expectation of performance, due to issues with syncronous I/O.
2015-11-27Fix swaygrab memory leakFurkan Sahin-0/+2
2015-11-27Implement swaygrab for still imagesFurkan Sahin-6/+50
2015-11-27Add command line to swaygrabFurkan Sahin-1/+54
Also modifies IPC client so that we can work with persistent connections.
2015-11-27Add swaygrab subprojectFurkan Sahin-0/+28