mirror of
https://github.com/swaywm/sway.git
synced 2025-10-31 22:25:26 -04:00
click_events as documented at https://i3wm.org/docs/i3bar-protocol.html
This commit is contained in:
parent
7553103e34
commit
65022e1cbf
5 changed files with 138 additions and 10 deletions
|
|
@ -13,6 +13,7 @@ struct status_line {
|
|||
list_t *block_line;
|
||||
const char *text_line;
|
||||
command_protocol protocol;
|
||||
bool click_events;
|
||||
};
|
||||
|
||||
struct status_block {
|
||||
|
|
@ -31,6 +32,10 @@ struct status_block {
|
|||
int border_bottom;
|
||||
int border_left;
|
||||
int border_right;
|
||||
|
||||
// Set during rendering
|
||||
int x;
|
||||
int width;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
@ -43,6 +48,11 @@ struct status_line *init_status_line();
|
|||
*/
|
||||
bool handle_status_line(struct bar *bar);
|
||||
|
||||
/**
|
||||
* Handle mouse clicks.
|
||||
*/
|
||||
bool status_line_mouse_event(struct bar *bar, int x, int y, uint32_t button);
|
||||
|
||||
/**
|
||||
* Free status line struct.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue