Commit Diff
- Commit:
4261c47df75d29e8f841a2ac1e074a0d6c5288e2
- From:
- Omar Polo <omar.polo@europecom.net>
- Date:
- Message:
- -1 on x and y to prevent other windows to grab the focus With the new mx/my I noticed that sometimes the window behind mymenu re-grab the keybard. Making sure that the mouse is inside the window seems to work.
- Actions:
- Patch | Tree
--- mymenu.c +++ mymenu.c @@ -1047,9 +1047,9 @@ parse_int_with_pos(Display *d, const char *str, int de get_mouse_coords(d, &x, &y); if (!strcmp(str, "mx")) - return x; + return x - 1; else - return y; + return y - 1; } return parse_int_with_percentage(str, default_value, max); }