Hi fellow suckless people! The attached patch adds mouse support to dmenu.
Disclaimer: this patch isn't meant to be included for upstream dmenu since I understand most people won't like mouse support for dmenu and thats OK. Maybe someone might find this useful :) Mouse actions supported: Left-mouse click: * On prompt and input field: clear input text and selection. * In horizontal and vertical mode on item: select and output item (same as pressing enter). * In horizontal mode on arrows: change items to show left or right. Right-mouse click: close. Middle-mouse click: * Paste current selection. * While holding shift: paste primary selection. Scroll up: * In horizontal mode: same as left-clicking on left arrow. * In vertical mode: show items above. Scroll down: * In horizontal mode: same as left-clicking on right arrow. * In vertical mode: show items below. The attached patch applies cleanly to latest dmenu 4.5 tip (dec9a28863f388072be105e0950deb72ac719d48). Kind regards, Hiltjo Posthuma
dmenu-basic-mouse-support.diff
Description: Binary data