mirror of
https://github.com/swaywm/sway.git
synced 2025-10-29 05:40:18 -04:00
swaybar: add StatusNotifierItem to tray
This commit is contained in:
parent
e6cb55e2f8
commit
74655f835a
6 changed files with 283 additions and 6 deletions
|
|
@ -5,6 +5,7 @@
|
|||
#include "swaybar/bar.h"
|
||||
#include "swaybar/tray/icon.h"
|
||||
#include "swaybar/tray/host.h"
|
||||
#include "swaybar/tray/item.h"
|
||||
#include "swaybar/tray/tray.h"
|
||||
#include "swaybar/tray/watcher.h"
|
||||
#include "list.h"
|
||||
|
|
@ -48,7 +49,7 @@ void destroy_tray(struct swaybar_tray *tray) {
|
|||
finish_host(&tray->host_xdg);
|
||||
finish_host(&tray->host_kde);
|
||||
for (int i = 0; i < tray->items->length; ++i) {
|
||||
free(tray->items->items[0]);
|
||||
destroy_sni(tray->items->items[0]);
|
||||
}
|
||||
list_free(tray->items);
|
||||
destroy_watcher(tray->watcher_xdg);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue