| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
|
|
|
| |
Lift restriction on json-c <= 0.12.1
ipc-server: Acquire ownership of referenced json_object properly
When adding a referenced json_object with an unknown lifetime to
another json_object, it must be done with a wrapped call to
json_object_get() to acquire the ownership of that json_object.
|
|
|
|
|
| |
This reverts commit 1c4a086e7556475139960a25cb642f115d057c23, reversing
changes made to 1263ea6497c732bfa1835eea4a8ffe2e6ea6e377.
|
|\ |
|
| | |
|
| |
| |
| |
| | |
Function dbus_message_iter_get_element_count is available since 1.10.
|
| |\
| | |
| | | |
Add Address Sanitized build type
|
| | |
| | |
| | |
| | | |
- Add -DCMAKE_BUILD_TYPE=ASAN to possible builds
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| | |
to 0.12.1. This is needed because the development
version breaks the existing API of json_object_array_length()
by moving the return from int to size_t.
This would fix #1355
|
| |
| |
| | |
Uses CMake's `add_compile_options` directive instead of interpolating `CMAKE_C_FLAGS` for adding compilation flags.
|
| |
| |
| | |
Update dbus dependency
|
| |
| |
| | |
Explicitly setting the version of json-c required
|
|/
|
| |
Use add_compile_options instead of interpolation
|
| |
|
|
|
|
|
| |
Swaybar's CMakeLists.txt uses the enable-tray option directly to decide whether to build the tray. This leads to a compilation error if dbus is not installed.
This patch uses the ENABLE_TRAY variable instead, which is only true if the user enabled the tray *and* dbus is available.
|
|
|
| |
It caused unpredictable build failures with different build environments
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This commit implements the StatusNotifierItem protocol, and enables
swaybar to show tray icons. It also uses `xembedsniproxy` in order to
communicate with xembed applications.
The tray is completely optional, and can be disabled on compile time
with the `enable-tray` option. Or on runtime with the bar config option
`tray_output none`.
Overview of changes:
In swaybar very little is changed outside the tray subfolder except
that all events are now polled in `event_loop.c`, this creates no
functional difference.
Six bar configuration options were added, these are detailed in
sway-bar(5)
The tray subfolder is where all protocol implementation takes place and
is organised as follows:
tray/sni_watcher.c:
This file contains the StatusNotifierWatcher. It keeps track of
items and hosts and reports when they come or go.
tray/tray.c
This file contains the StatusNotifierHost. It keeps track of
sway's version of the items and represents the tray itself.
tray/sni.c
This file contains the StatusNotifierItem struct and all
communication with individual items.
tray/icon.c
This file implements the icon theme protocol. It allows for
finding icons by name, rather than by pixmap.
tray/dbus.c
This file allows for asynchronous DBus communication.
See #986 #343
|
|
|
|
|
|
|
| |
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).
|
|
|
|
| |
This reverts commit 91f2bf81bf89699d43083f3d3a27805ba5e395a9.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
- Moved ``<sys/capability.h>`` include inside `__linux__` guard,
because all uses are similarly guarded.
- <sys/capability.h> is part of an optional devel package, at least
in fedora. CMake now explicitly checks that libcap devel files
are available.
- Added libcap to the list of install packages in .travis.yml, to
make the dependency explicit. travis-ci installs the package by
default, which is why this hasn't surfaced previously.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
Exherbo installs architecture dependent data in a different place than architecture
independent data. More concretely: binaries go in /usr/$chost/{bin,lib},
data goes in /usr/share and configs in /etc, /etc is already configurable
through CMAKE_INSTALL_FULL_SYSCONFDIR but the datadir was not. This
patch fixes it so that things can be pushed in the right places.
|
|
|
|
|
|
|
|
|
| |
- Make sure CMake always finds absolute paths for Cairo, Pango and GdkPixbuf
- Add forgotten json-c include path to swaymsg/CMakeLists.txt
- Disable -Werror because of assert warnings
- Add correct /proc/pid/file path for FreeBSD
- Use libepoll-shim on FreeBSD
- Only use Linux capabilities on, well, Linux
|
| |
|
| |
|
| |
|
|
|
| |
This fixes the version string
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|\
| |
| | |
Basic Zsh auto-completion for --options
|
| | |
|
|/ |
|
|
|
|
| |
The option was added to late so it was never set in the build.
|
| |
|
| |
|
| |
|
|
|
|
| |
Closes #238
|
|
|
|
| |
Fixes configuration not properly installed since f02cf75
|
|
|
|
|
| |
- swaylock config path not hardcoded anymore
- the unusual and weird FALLBACK_CONFIG_DIR is no more
|
|
|
|
| |
works on arch (glibc) and void linux (tested with musl libc) now
|