| Commit message (Collapse) | Author | Age |
... | |
| |
|
| |
|
| |
|
|
|
|
|
| |
Keep sway_abort and sway_assert and convert them to use wlr_log
functions
|
| |
|
|
|
|
|
| |
It is required for include path if wlroots is not built in standard path,
but found through pkg-config
|
| |
|
| |
|
| |
|
|
|
|
| |
This removes the last wlc/wlc.h include actually in use
|
| |
|
|
|
|
|
| |
Makes reading debug logs much easier, debug lines will start with `E`,
info lines with `I` and error lines with `E`.
|
|
|
|
|
|
|
| |
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).
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
_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
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
|
| |
From now on let's just let the core dumps happen and ask users to
provide them.
|
|
|
|
| |
This patch also makes all global variable in log.c static.
|
| |
|
| |
|
|\ |
|
| |
| |
| |
| |
| |
| |
| | |
Escape line return when reading from a file with the '\' character.
Similar to shell scripts.
Signed-off-by: Roosembert Palacios <roosembert.palacios@epfl.ch>
|
|/ |
|
|
|
|
| |
also change sort_workspaces() to use it
|
|
|
|
| |
This removes most preprocessor logic, leaving it only it the header.
|
| |
|
| |
|
| |
|
|
|
|
| |
released
|
|
|
|
|
| |
When no type is given, it depends on BUILD_SHARED_LIBS value which is
not desired in this case.
|
|
|
|
|
|
| |
When headers were installed in more sofisticated places (but package
config knows it right), it revealed missing paths in CMake
configuration. Lets fix it.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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.
|
| |
|