aboutsummaryrefslogtreecommitdiff
path: root/common
AgeCommit message (Collapse)AuthorLines
2018-07-09Update for swaywm/wlroots#1126Furkan Sahin-11/+11
2018-07-01utf8_size: fix loop boundaryFurkan Sahin-1/+1
Found through static analysis
2018-07-01get_parent_pid: fix memory leakFurkan Sahin-1/+1
Found through static analysis.
2018-06-02Fix infinite loop in peek_line for EOF blanksFurkan Sahin-0/+2
2018-06-01Address emersion's feedback on peek_lineFurkan Sahin-4/+4
2018-05-31Fix condition in peek_lineFurkan Sahin-1/+1
2018-05-30Address first round of review for generic blocksFurkan Sahin-6/+13
2018-05-30Support braces on next line for config blocksFurkan Sahin-0/+14
2018-05-25Clean up container title functionsFurkan Sahin-0/+14
* Add and use lenient_strcat and lenient_strncat functions * Rename `concatenate_child_titles` function as that's no longer what it does * Rename `container_notify_child_title_changed` because we only need to notify that the tree structure has changed, not titles * Don't notify parents when a child changes its title * Update ancestor titles when changing a container's layout * Eg. create nested tabs and change the inner container to stacking * No need to store tree presentation in both container->name and formatted_title
2018-05-16Change scale from int32_t to double for pangoFurkan Sahin-3/+3
2018-05-13Fix pango markupFurkan Sahin-7/+9
The condition checking if the markup is valid was inverted. This commit also adds better error handling: if the markup cannot be parsed, it fallbacks to plain text.
2018-05-07Fix crash when using pango markup fontFurkan Sahin-5/+68
The characters & < > ' " needs to be escaped when using pango markup Signed-off-by: Heghedus Razvan <heghedus.razvan@gmail.com>
2018-04-13Fix gcc string truncation warningsFurkan Sahin-1/+1
2018-04-03R E N D E R I N GFurkan Sahin-1/+2
2018-04-03Add password buffer, refactor rendering/surfacesFurkan Sahin-0/+102
2018-04-02Initial swaylock portFurkan Sahin-2/+20
2018-04-02Move swaybg background rendering into common/Furkan Sahin-12/+108
swaylock will use it too
2018-04-02Fix use-after-free with block hotspotsFurkan Sahin-1/+8
2018-03-29Use statically allocated text bufferFurkan Sahin-4/+2
2018-03-28Start port of swaybar to layer shellFurkan Sahin-0/+70
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.
2018-03-28Allow sway IPC clients to fall back to i3 socketFurkan Sahin-7/+25
2018-03-28Address review commentsFurkan Sahin-3/+3
2018-03-27Add solid-color rendering to swaybgFurkan Sahin-5/+143
2018-01-05common/log: finish removing most log functionsFurkan Sahin-145/+4
Keep sway_abort and sway_assert and convert them to use wlr_log functions
2018-01-05sway: change all sway_log to wlr_logFurkan Sahin-4/+4
2017-12-19build: add wlroots dependency to commonFurkan Sahin-0/+1
It is required for include path if wlroots is not built in standard path, but found through pkg-config
2017-11-30remove relevant CMakeLists.txtFurkan Sahin-15/+0
2017-11-30meson: common static libraryFurkan Sahin-7/+10
2017-11-30use meson subdirectoriesFurkan Sahin-0/+8
2017-11-23common/util: replace WLC_BIT_MOD_* by WLR_MODIFIER_*Furkan Sahin-11/+11
This removes the last wlc/wlc.h include actually in use
2017-11-18Move everything to sway/old/Furkan Sahin-1/+1
2017-10-20Print log level even if STDERR is not a ttyFurkan Sahin-5/+18
Makes reading debug logs much easier, debug lines will start with `E`, info lines with `I` and error lines with `E`.
2017-06-05FreeBSD fixesFurkan Sahin-3/+3
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_pathFurkan Sahin-33/+33
2017-04-26Fix link to dotfiles, closes #1193Furkan Sahin-1/+1
2017-04-20Make sway_abort() report locationFurkan Sahin-10/+9
2017-04-14Add resolve_path() to utilsFurkan Sahin-0/+41
2017-04-16Fix location reported by sway_assertFurkan Sahin-2/+2
2017-04-16Fix variadic forwarding in sway_assertFurkan Sahin-5/+10
_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
2017-03-10UnGNUify the codebaseFurkan Sahin-8/+5
2017-02-21Feature for #1078: Configurable swaylock colorsFurkan Sahin-3/+7
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-12-29Added "layout promote" command.Furkan Sahin-1/+1
2016-12-15Handle config-related allocation failuresFurkan Sahin-0/+3
2016-12-15Handle malloc failures from read_lineFurkan Sahin-0/+3
2016-12-15Handle malloc failure in ipc_recv_responseFurkan Sahin-3/+21
2016-09-01Reorganize includesFurkan Sahin-18/+16
2016-08-30Fix to make ipc client code FreeBSD compatible.Furkan Sahin-1/+1
2016-08-04common: use strtoul in parse_color to avoid clampFurkan Sahin-1/+1
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 swaybgFurkan Sahin-0/+15
2016-07-28Add timestamp to log messagesFurkan Sahin-0/+15