mirror of
https://github.com/gwenhael-le-moine/sway-patched-tray-menu.git
synced 2025-01-08 05:24:25 +01:00
27 lines
464 B
C
27 lines
464 B
C
|
#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 */
|