Fix minor bug causing 'dismiss' not to work
This commit is contained in:
parent
11d9afc400
commit
cf5c30e7cc
1 changed files with 2 additions and 2 deletions
4
herbe.c
4
herbe.c
|
@ -35,7 +35,6 @@ int get_max_len(char *body, XftFont *font, int max_text_width)
|
||||||
|
|
||||||
if (info.width > max_text_width)
|
if (info.width > max_text_width)
|
||||||
{
|
{
|
||||||
|
|
||||||
eol = max_text_width / font->max_advance_width;
|
eol = max_text_width / font->max_advance_width;
|
||||||
info.width = 0;
|
info.width = 0;
|
||||||
|
|
||||||
|
@ -73,6 +72,7 @@ void expire()
|
||||||
{
|
{
|
||||||
XEvent event;
|
XEvent event;
|
||||||
event.type = ButtonPress;
|
event.type = ButtonPress;
|
||||||
|
event.xbutton.button = DISMISS_BUTTON;
|
||||||
XSendEvent(display, window, 0, 0, &event);
|
XSendEvent(display, window, 0, 0, &event);
|
||||||
XFlush(display);
|
XFlush(display);
|
||||||
}
|
}
|
||||||
|
@ -210,4 +210,4 @@ int main(int argc, char *argv[])
|
||||||
XCloseDisplay(display);
|
XCloseDisplay(display);
|
||||||
|
|
||||||
exit(exit_code);
|
exit(exit_code);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue