aboutsummaryrefslogtreecommitdiff
path: root/common/util.c
AgeCommit message (Collapse)Author
2018-07-09Update for swaywm/wlroots#1126emersion
2018-07-02get_parent_pid: fix memory leakDominique Martinet
Found through static analysis.
2018-01-05sway: change all sway_log to wlr_logDominique Martinet
2017-11-23common/util: replace WLC_BIT_MOD_* by WLR_MODIFIER_*Dominique Martinet
This removes the last wlc/wlc.h include actually in use
2017-06-06FreeBSD fixesjohalun
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-05-11Replace spaces with tabs in resolve_pathMykyta Holubakha
2017-04-16Add resolve_path() to utilsJerzi Kaminsky
2017-03-10UnGNUify the codebaseDrew DeVault
2017-02-21Feature for #1078: Configurable swaylock colorsCalvin Lee
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.
2016-09-01Reorganize includesDrew DeVault
2016-08-04common: use strtoul in parse_color to avoid clampprogandy
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.
2016-07-30implement solid color rendering for swaybgZandr Martin
2016-06-11couple small fixesZandr Martin
2016-06-11cleanup + add timeouts for pid_workspace listZandr Martin
2016-06-10semi-working (only non-client/server wayland apps)Zandr Martin
2016-01-24numlen(0) == 1Mikkel Oscar Lyderik
2016-01-24use log10 in numlenMikkel Oscar Lyderik
2016-01-23Revert "s/numlen/log10/g"Drew DeVault
This reverts commit 038bb8cc7c4dee77f8ee4ba3ac1ffc47409b2370.
2016-01-23s/numlen/log10/gDrew DeVault
2016-01-08Add function for getting list of modifier names.Mikkel Oscar Lyderik
Get an array of modifier names from modifier masks.
2016-01-05Move modifier name table to common/util.cMikkel Oscar Lyderik
Lookup of modifier names is required in several places, thus it makes sense to move it to a general place.
2015-12-14Move sway/util.c to common/util.cMikkel Oscar Lyderik