Brian Ashworth
9ec1d6cf79
Address review comments on parse_boolean
7 years ago
Brian Ashworth
d56d62c1c0
Remove unneeded const
7 years ago
Brian Ashworth
863914ec95
Switch to using a function to parse booleans
7 years ago
emersion
63b4bf5000
Update for swaywm/wlroots#1126
7 years ago
Dominique Martinet
f0d1d26320
get_parent_pid: fix memory leak
...
Found through static analysis.
7 years ago
Dominique Martinet
67985e9031
sway: change all sway_log to wlr_log
7 years ago
Dominique Martinet
977c1f6a30
common/util: replace WLC_BIT_MOD_* by WLR_MODIFIER_*
...
This removes the last wlc/wlc.h include actually in use
7 years ago
johalun
7fef283044
FreeBSD fixes
...
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).
8 years ago
Mykyta Holubakha
f470fa58a3
Replace spaces with tabs in resolve_path
8 years ago
Jerzi Kaminsky
c9694ee63d
Add resolve_path() to utils
8 years ago
Drew DeVault
9aed9d9359
UnGNUify the codebase
8 years ago
Calvin Lee
34e2c70abc
Feature for #1078 : Configurable swaylock colors
...
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.
8 years ago
Drew DeVault
416417a54c
Reorganize includes
8 years ago
progandy
bf4056a2c6
common: use strtoul in parse_color to avoid clamp
...
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.
9 years ago
Zandr Martin
98aa59fdda
implement solid color rendering for swaybg
9 years ago
Zandr Martin
9ecb43ea3b
couple small fixes
9 years ago
Zandr Martin
2298143d09
cleanup + add timeouts for pid_workspace list
9 years ago
Zandr Martin
03d79b41c7
semi-working (only non-client/server wayland apps)
9 years ago
Mikkel Oscar Lyderik
c8cf3f70f9
numlen(0) == 1
9 years ago
Mikkel Oscar Lyderik
2707be7199
use log10 in numlen
9 years ago
Drew DeVault
a416715372
Revert "s/numlen/log10/g"
...
This reverts commit 038bb8cc7c
.
9 years ago
Drew DeVault
038bb8cc7c
s/numlen/log10/g
9 years ago
Mikkel Oscar Lyderik
dffacea831
Add function for getting list of modifier names.
...
Get an array of modifier names from modifier masks.
9 years ago
Mikkel Oscar Lyderik
95e0f44c73
Move modifier name table to common/util.c
...
Lookup of modifier names is required in several places, thus it makes
sense to move it to a general place.
9 years ago
Mikkel Oscar Lyderik
cf56c41c10
Move sway/util.c to common/util.c
9 years ago