Dominique Martinet
25af959fe9
Fix gcc string truncation warnings
7 years ago
Drew DeVault
d053acbed6
R E N D E R I N G
7 years ago
Drew DeVault
066143adef
Add password buffer, refactor rendering/surfaces
7 years ago
Drew DeVault
b32bf595ae
Initial swaylock port
7 years ago
Drew DeVault
a28730edee
Move swaybg background rendering into common/
...
swaylock will use it too
7 years ago
Drew DeVault
c507727ad2
Fix use-after-free with block hotspots
7 years ago
Drew DeVault
849c3515ab
Use statically allocated text buffer
7 years ago
Drew DeVault
cab1352801
Start port of swaybar to layer shell
...
This starts up the event loop and wayland display and shims out the
basic top level rendering concepts. Also includes some changes to
incorporate pango into the 1.x codebase properly.
7 years ago
Drew DeVault
382e8af418
Allow sway IPC clients to fall back to i3 socket
7 years ago
Drew DeVault
d39bda76c4
Address review comments
7 years ago
Drew DeVault
632bb948b7
Add solid-color rendering to swaybg
7 years ago
Dominique Martinet
d4ddfec32e
common/log: finish removing most log functions
...
Keep sway_abort and sway_assert and convert them to use wlr_log
functions
7 years ago
Dominique Martinet
67985e9031
sway: change all sway_log to wlr_log
7 years ago
Dominique Martinet
f9413adde7
build: add wlroots dependency to common
...
It is required for include path if wlroots is not built in standard path,
but found through pkg-config
7 years ago
Tony Crisci
517af37cc9
remove relevant CMakeLists.txt
7 years ago
Tony Crisci
cc310cffb0
meson: common static library
7 years ago
Tony Crisci
88cc7e3178
use meson subdirectories
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
Drew DeVault
733993a651
Move everything to sway/old/
7 years ago
Calvin Lee
016261fd64
Print log level even if STDERR is not a tty
...
Makes reading debug logs much easier, debug lines will start with `E`,
info lines with `I` and error lines with `E`.
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
Drew DeVault
586eca0e4c
Fix link to dotfiles, closes #1193
8 years ago
Jerzi Kaminsky
8ecb490679
Make sway_abort() report location
8 years ago
Jerzi Kaminsky
c9694ee63d
Add resolve_path() to utils
8 years ago
Jerzi Kaminsky
709b53bd43
Fix location reported by sway_assert
8 years ago
Jerzi Kaminsky
eb3b1ec5f1
Fix variadic forwarding in sway_assert
...
_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
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
wil
1b87193c3d
Added "layout promote" command.
8 years ago
Drew DeVault
d75a747a3d
Handle config-related allocation failures
8 years ago
Drew DeVault
4c6c65e70c
Handle malloc failures from read_line
8 years ago
Drew DeVault
9ad1e6b40f
Handle malloc failure in ipc_recv_response
8 years ago
Drew DeVault
416417a54c
Reorganize includes
8 years ago
Johannes Lundberg
949933c5c3
Fix to make ipc client code FreeBSD compatible.
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
Tony Crisci
70360c5c07
Add timestamp to log messages
9 years ago
Drew DeVault
c8917395c0
Remove SIGSERV and SIGABORT handler
...
From now on let's just let the core dumps happen and ask users to
provide them.
9 years ago
David Eklov
26842ff383
Add get_log_level() to encapsulate v (current log level)
...
This patch also makes all global variable in log.c static.
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
66caee645c
Merge branch 'master' into assign-command
9 years ago
Zandr Martin
03d79b41c7
semi-working (only non-client/server wayland apps)
9 years ago
Roosembert Palacios
230591fa4e
Common: Readline: Ignore newline on '\' escaped line ends.
...
Escape line return when reading from a file with the '\' character.
Similar to shell scripts.
Signed-off-by: Roosembert Palacios <roosembert.palacios@epfl.ch>
9 years ago
Zandr Martin
9ccc92705e
implement stable sort for lists
...
also change sort_workspaces() to use it
9 years ago
Eric Engestrom
cc9d1cacbb
common: refactor sway_log()
...
This removes most preprocessor logic, leaving it only it the header.
9 years ago
Eric Engestrom
f53ddbe800
common: fix double-close in error_handler()
9 years ago
Eric Engestrom
a1bb58017b
Fix off-by-one bug in log functions
9 years ago
Eric Engestrom
aece36cd22
common: fix potential buffer overflow
9 years ago