aboutsummaryrefslogtreecommitdiffstats
path: root/common
Commit message (Collapse)AuthorAge
* FreeBSD fixesLibravatar johalun2017-06-06
| | | | | | | 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).
* Replace spaces with tabs in resolve_pathLibravatar Mykyta Holubakha2017-05-11
|
* Fix link to dotfiles, closes #1193Libravatar Drew DeVault2017-04-26
|
* Make sway_abort() report locationLibravatar Jerzi Kaminsky2017-04-20
|
* Add resolve_path() to utilsLibravatar Jerzi Kaminsky2017-04-16
|
* Fix location reported by sway_assertLibravatar Jerzi Kaminsky2017-04-16
|
* Fix variadic forwarding in sway_assertLibravatar Jerzi Kaminsky2017-04-16
| | | | | | | | _sway_assert is a variadic function which tries to delegate to another variadic function. This requires a vprintf-style variant of the delegate. https://stackoverflow.com/a/150616
* UnGNUify the codebaseLibravatar Drew DeVault2017-03-10
|
* Feature for #1078: Configurable swaylock colorsLibravatar Calvin Lee2017-02-21
| | | | | | | | | | | Colors are configured through the command line so that swaylock conforms to the i3lock fork 'github.com/chrjguill/i3lock-color'. Differences from it are that one letter options '-r' and '-s' are not implimentend because '-s' is already used by '--scaling' in swaylock. This commit also fixed whitespace in 'include/swaylock/swaylock.h' and changed `parse_color` in 'common/util.h' so that it can accept colors that do not start with a hash. This was done to keep compatability with the i3lock fork.
* Added "layout promote" command.Libravatar wil2016-12-29
|
* Handle config-related allocation failuresLibravatar Drew DeVault2016-12-15
|
* Handle malloc failures from read_lineLibravatar Drew DeVault2016-12-15
|
* Handle malloc failure in ipc_recv_responseLibravatar Drew DeVault2016-12-15
|
* Reorganize includesLibravatar Drew DeVault2016-09-01
|
* Fix to make ipc client code FreeBSD compatible.Libravatar Johannes Lundberg2016-08-30
|
* common: use strtoul in parse_color to avoid clampLibravatar progandy2016-08-04
| | | | | Some implementations of strtol may clamp the values to LONG_MAX instead of wrapping around to negative values, so use strtoul instead to parse colors.
* implement solid color rendering for swaybgLibravatar Zandr Martin2016-07-30
|
* Add timestamp to log messagesLibravatar Tony Crisci2016-07-28
|
* Remove SIGSERV and SIGABORT handlerLibravatar Drew DeVault2016-07-17
| | | | | From now on let's just let the core dumps happen and ask users to provide them.
* Add get_log_level() to encapsulate v (current log level)Libravatar David Eklov2016-06-27
| | | | This patch also makes all global variable in log.c static.
* couple small fixesLibravatar Zandr Martin2016-06-11
|
* cleanup + add timeouts for pid_workspace listLibravatar Zandr Martin2016-06-11
|
* Merge branch 'master' into assign-commandLibravatar Zandr Martin2016-06-11
|\
| * Common: Readline: Ignore newline on '\' escaped line ends.Libravatar Roosembert Palacios2016-06-06
| | | | | | | | | | | | | | Escape line return when reading from a file with the '\' character. Similar to shell scripts. Signed-off-by: Roosembert Palacios <roosembert.palacios@epfl.ch>
* | semi-working (only non-client/server wayland apps)Libravatar Zandr Martin2016-06-10
|/
* implement stable sort for listsLibravatar Zandr Martin2016-06-02
| | | | also change sort_workspaces() to use it
* common: refactor sway_log()Libravatar Eric Engestrom2016-05-02
| | | | This removes most preprocessor logic, leaving it only it the header.
* common: fix double-close in error_handler()Libravatar Eric Engestrom2016-05-02
|
* Fix off-by-one bug in log functionsLibravatar Eric Engestrom2016-05-02
|
* common: fix potential buffer overflowLibravatar Eric Engestrom2016-05-01
|
* common/stringop.c: a premature decrement meant an element of argv was never ↵Libravatar Daniel Lockyer2016-04-29
| | | | released
* Explicitly mark static linking in CMakeLibravatar Tomáš Čech2016-04-28
| | | | | When no type is given, it depends on BUILD_SHARED_LIBS value which is not desired in this case.
* Fix missing include pathsLibravatar Tomáš Čech2016-04-28
| | | | | | When headers were installed in more sofisticated places (but package config knows it right), it revealed missing paths in CMake configuration. Lets fix it.
* Fix spelling mistakesLibravatar Eric Engestrom2016-04-02
|
* CMake: add missing wlc include dir for common and swaygrabLibravatar Dominique Martinet2016-03-24
|
* Abort when receiving 0 bytes in IPC callLibravatar Mikkel Oscar Lyderik2016-03-22
| | | | | | | | | | | When sway crashes a swaybar process is sometimes left behind running at 100% CPU. This was caused by the swaybar trying to retrieve an IPC response from the closed sway socket. This patch fixes the problem by aborting when the socket has been closed (recv return 0). Fix #528
* Correctly exit sway on errors.Libravatar Mikkel Oscar Lyderik2016-02-26
| | | | | | | | 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.
* Fix clang warningsLibravatar Mikkel Oscar Lyderik2016-02-08
|
* Print /proc/<pid>/maps on segfaultLibravatar Drew DeVault2016-01-28
|
* Add quotes to multiword arguments.Libravatar Mikkel Oscar Lyderik2016-01-25
| | | | | | | | | | | | | | | | | | | | | This adds quotes around multiword arguments before they are passed to `/bin/sh -c` in an exec command. Example: I connect to irc like this: exec termite -e "mosh server tmux a" Without this patch the arguments are passed to sh as: termite -e mosh server tmux a When it should be: termite -e "mosh server tmux a" For the command to work.
* numlen(0) == 1Libravatar Mikkel Oscar Lyderik2016-01-24
|
* use log10 in numlenLibravatar Mikkel Oscar Lyderik2016-01-24
|
* Revert "s/numlen/log10/g"Libravatar Drew DeVault2016-01-23
| | | | This reverts commit 038bb8cc7c4dee77f8ee4ba3ac1ffc47409b2370.
* s/numlen/log10/gLibravatar Drew DeVault2016-01-23
|
* Add function for getting list of modifier names.Libravatar Mikkel Oscar Lyderik2016-01-08
| | | | Get an array of modifier names from modifier masks.
* Move modifier name table to common/util.cLibravatar Mikkel Oscar Lyderik2016-01-05
| | | | | Lookup of modifier names is required in several places, thus it makes sense to move it to a general place.
* Add type to returned response.Libravatar Mikkel Oscar Lyderik2016-01-03
| | | | | | | Makes `ipc_recv_response` return a struct with size, type and payload rather than just the payload string. This is useful if the type has to be checked on the client.
* swaybar: fix memory leaksLibravatar progandy2015-12-22
|
* replace non-standard qsort_r with qsortLibravatar robotanarchy2015-12-22
| | | | | | | | | | | | | | | | | | | | | | | | I've tried to make as few changes, as possible. Usually the reason for using qsort_r is, that you can pass an extra userdata pointer to the compare function. However, in sway list_sort wrapped qsort_r and always called a wrapper function for comparing, the wrapper function then had the real compare function as argument. The only thing, that the wrapper function does, is dereferencing the 'left' and 'right' function arguments before passing them to the real compare function. I have renamed list_sort to list_qsort to avoid confusion (so nobody tries to use list_qsort like list_sort) and removed the wrapper functionality. Now the dereferencing must be done in the compare function, that gets passed. Some compare functions were used in both list_sort and list_seq_find. To make the difference clear, I've added a '_qsort' suffix to the compare functions, that are intended to be used with the new list_qsort. (In other words: list_qsort is not compatible anymore with list_seq_find). - Changed and renamed function (it isn't used anywhere but in commands.c, and only for sorting): compare_set -> compare_set_qsort - New wrapper functions: sway_binding_cmp_qsort (for sway_binding_cmp) sway_mouse_binding_cmp_qsort (for sway_mouse_binding_cmp)
* fix backtrace detection in CMakeLibravatar robotanarchy2015-12-22
| | | | works on arch (glibc) and void linux (tested with musl libc) now