X-Git-Url: https://git.sur5r.net/?p=i3%2Fi3;a=blobdiff_plain;f=i3bar%2Fsrc%2Fxcb.c;h=542c86c3c645a4c117d15f22775d73fb900476f6;hp=77822544e72e5df3de2a0cc532850f965c7b6cfb;hb=161db6f17d734ac9deb0a20e81b78d4b2a92ce68;hpb=eb227c23326e73ccdda098f879ddf5f36b56f399 diff --git a/i3bar/src/xcb.c b/i3bar/src/xcb.c index 77822544..542c86c3 100644 --- a/i3bar/src/xcb.c +++ b/i3bar/src/xcb.c @@ -523,7 +523,8 @@ void handle_button(xcb_button_press_event_t *event) { block_x += render->width + render->x_offset + render->x_append + get_sep_offset(block) + sep_offset_remainder; if (statusline_x <= block_x && statusline_x >= last_block_x) { - send_block_clicked(event->detail, block->name, block->instance, event->root_x, event->root_y); + send_block_clicked(event->detail, block->name, block->instance, + event->root_x, event->root_y, statusline_x - last_block_x, event->event_y, block_x - last_block_x, bar_height); return; }