mirror of
https://github.com/swaywm/sway.git
synced 2026-03-06 01:40:42 -05:00
Tray: Implement dbusmenu
Co-authored-by: Ian Fan <ianfan0@gmail.com> Co-authored-by: Nathan Schulte <nmschulte@gmail.com> Signed-off-by: Felix Weilbach <felix.weilbach@t-online.de>
This commit is contained in:
parent
f686e9ad59
commit
2fd480ff1b
11 changed files with 1468 additions and 11 deletions
27
include/swaybar/tray/dbusmenu.h
Normal file
27
include/swaybar/tray/dbusmenu.h
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
#ifndef _SWAYBAR_TRAY_DBUSMENU_H
|
||||
#define _SWAYBAR_TRAY_DBUSMENU_H
|
||||
|
||||
#include "swaybar/bar.h"
|
||||
#include "swaybar/tray/item.h"
|
||||
|
||||
void swaybar_dbusmenu_open(struct swaybar_sni *sni,
|
||||
struct swaybar_output *output, struct swaybar_seat *seat, uint32_t serial,
|
||||
int x, int y);
|
||||
|
||||
bool dbusmenu_pointer_button(void *data, struct wl_pointer *wl_pointer,
|
||||
uint32_t serial, uint32_t time_, uint32_t button, uint32_t state);
|
||||
|
||||
bool dbusmenu_pointer_motion(struct swaybar_seat *seat, struct wl_pointer *wl_pointer,
|
||||
uint32_t time_, wl_fixed_t surface_x, wl_fixed_t surface_y);
|
||||
|
||||
bool dbusmenu_pointer_enter(void *data, struct wl_pointer *wl_pointer, uint32_t serial,
|
||||
struct wl_surface *surface, wl_fixed_t surface_x, wl_fixed_t surface_y);
|
||||
|
||||
bool dbusmenu_pointer_leave(void *data, struct wl_pointer *wl_pointer, uint32_t serial,
|
||||
struct wl_surface *surface);
|
||||
|
||||
bool dbusmenu_pointer_frame(struct swaybar_seat *data, struct wl_pointer *wl_pointer);
|
||||
|
||||
bool dbusmenu_pointer_axis(struct swaybar_seat *data, struct wl_pointer *wl_pointer);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue