mirror of
https://github.com/swaywm/sway.git
synced 2026-04-26 06:46:26 -04:00
tray: implement d-bus menu
This commit is contained in:
parent
ae4ff7226f
commit
1e92def4b1
11 changed files with 1145 additions and 36 deletions
|
|
@ -130,8 +130,8 @@ static void render_sharp_line(cairo_t *cairo, uint32_t color,
|
|||
}
|
||||
|
||||
static enum hotspot_event_handling block_hotspot_callback(
|
||||
struct swaybar_output *output, struct swaybar_hotspot *hotspot,
|
||||
double x, double y, uint32_t button, void *data) {
|
||||
struct swaybar_output *output, struct swaybar_hotspot *hotspot, struct wl_seat *seat,
|
||||
uint32_t serial, double x, double y, uint32_t button, void *data) {
|
||||
struct i3bar_block *block = data;
|
||||
struct status_line *status = output->bar->status;
|
||||
return i3bar_block_send_click(status, block, x, y,
|
||||
|
|
@ -554,8 +554,8 @@ static uint32_t render_binding_mode_indicator(cairo_t *cairo,
|
|||
}
|
||||
|
||||
static enum hotspot_event_handling workspace_hotspot_callback(
|
||||
struct swaybar_output *output, struct swaybar_hotspot *hotspot,
|
||||
double x, double y, uint32_t button, void *data) {
|
||||
struct swaybar_output *output, struct swaybar_hotspot *hotspot, struct wl_seat *seat,
|
||||
uint32_t serial, double x, double y, uint32_t button, void *data) {
|
||||
if (button != BTN_LEFT) {
|
||||
return HOTSPOT_PROCESS;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue