herbe

[fork] notifications
Log | Files | Refs | README | LICENSE

commit cf5c30e7ccb3fb2cf67be36061d34f361a654519
parent 11d9afc4009ee9f2f3e4e541f53d646198cf8b16
Author: Samuel Dudik <samuel.dudik@gmail.com>
Date:   Sat, 15 Aug 2020 19:50:37 +0200

Fix minor bug causing 'dismiss' not to work

Diffstat:
Mherbe.c | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/herbe.c b/herbe.c @@ -35,7 +35,6 @@ int get_max_len(char *body, XftFont *font, int max_text_width) if (info.width > max_text_width) { - eol = max_text_width / font->max_advance_width; info.width = 0; @@ -73,6 +72,7 @@ void expire() { XEvent event; event.type = ButtonPress; + event.xbutton.button = DISMISS_BUTTON; XSendEvent(display, window, 0, 0, &event); XFlush(display); } @@ -210,4 +210,4 @@ int main(int argc, char *argv[]) XCloseDisplay(display); exit(exit_code); -} -\ No newline at end of file +}