aboutsummaryrefslogtreecommitdiffstats
path: root/swaybar/tray/sni_watcher.c
Commit message (Collapse)AuthorAge
* Reply in case of object path itemLibravatar gnidorah2017-12-29
|
* Prevent segfault in `get_items()`Libravatar Calvin Lee2017-12-29
| | | | | One segfault resulted from an incorrect dbus call in sni_watcher. The other from duplicate items in the sni host.
* Allow registering StatusNotifierItems by obj pathLibravatar Calvin Lee2017-12-29
| | | | | | | | This commit impliments a KDE hidden feature where a SNI could be registered by object path instead of well-known name. This should allow libappindicator programs to work correctly under sway. See #1372
* Fix name validation in sni_watcher.cLibravatar Calvin Lee2017-07-13
| | | | This commit also fixes a memory leak that occurs on failure.
* Implement Tray IconsLibravatar Calvin Lee2017-06-07
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