mirror of
https://github.com/swaywm/sway.git
synced 2025-10-29 05:40:18 -04:00
swaybar: implement mouse events for tray
This commit is contained in:
parent
fa2c5282c1
commit
6becde0246
3 changed files with 97 additions and 2 deletions
|
|
@ -215,12 +215,16 @@ struct wl_output_listener output_listener = {
|
|||
|
||||
static void xdg_output_handle_logical_position(void *data,
|
||||
struct zxdg_output_v1 *xdg_output, int32_t x, int32_t y) {
|
||||
// Who cares
|
||||
struct swaybar_output *output = data;
|
||||
output->output_x = x;
|
||||
output->output_y = y;
|
||||
}
|
||||
|
||||
static void xdg_output_handle_logical_size(void *data,
|
||||
struct zxdg_output_v1 *xdg_output, int32_t width, int32_t height) {
|
||||
// Who cares
|
||||
struct swaybar_output *output = data;
|
||||
output->output_height = height;
|
||||
output->output_width = width;
|
||||
}
|
||||
|
||||
static void xdg_output_handle_done(void *data,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue