blob: 7d371008fd5c07553b754d764c4864afbcd57392 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#ifndef _SWAYBAR_TRAY_H
#define _SWAYBAR_TRAY_H
#include <stdint.h>
#include <stdbool.h>
#include "swaybar/tray/dbus.h"
#include "swaybar/tray/sni.h"
#include "list.h"
extern struct tray *tray;
struct tray {
list_t *items;
};
/**
* Initializes the tray host with D-Bus
*/
int init_tray();
/**
* Returns an item if `x` and `y` collide with it and NULL otherwise
*/
struct StatusNotifierItem *collides_with_sni(int x, int y);
#endif /* _SWAYBAR_TRAY_H */
|