sbstnc / dmenu-ee Goto Github PK
View Code? Open in Web Editor NEWdmenu-ee // dynamic menu extended edition
License: Other
dmenu-ee // dynamic menu extended edition
License: Other
Makes hovering more reactive. Do you need a pull request or similar?
diff --git a/dmenu.c b/dmenu.c
index c4b2899..6c66db8 100644
--- a/dmenu.c
+++ b/dmenu.c
@@ -955,6 +955,8 @@ run(void) {
continue;
switch(ev.type) {
case MotionNotify:
+ while(XCheckTypedEvent(dc->dpy, MotionNotify, &ev))
+ (void)0;
pointermove(&ev);
break;
case ButtonPress:
Just after the #ifdef XINERAMA block in setup(), x and y are set. This:
y = topbar ? 0 : DisplayHeight(dc->dpy, screen) - mh - yoffset;
should be this:
y = topbar ? yoffset : DisplayHeight(dc->dpy, screen) - mh - yoffset;
If I need to create a PR for this issue, I can, but I figured since it's basically just a typo I'd just open an issue about it.
One could add a switch to control this, interpreting "0" (the default) as the present page scrolling behavior.
Opinions?
diff --git a/dmenu.c b/dmenu.c
index 6c66db8..36580aa 100644
--- a/dmenu.c
+++ b/dmenu.c
@@ -725,14 +725,18 @@ buttonpress(XEvent *e) {
}
/* scroll up */
if(ev->button == Button4 && prev) {
- sel = curr = prev;
+ int i = 0;
+ while(++i < 4 && sel && sel->left)
+ curr = sel = sel->left;
calcoffsets();
drawmenu();
return;
}
/* scroll down */
if(ev->button == Button5 && next) {
- sel = curr = next;
+ int i = 0;
+ while(++i < 4 && sel && sel->right)
+ curr = sel = sel->right;
calcoffsets();
drawmenu();
return;
-i
works ok, case insensitive
-z
works ok, case sensitive, fuzzy
-i -z
nothing happens (well, sometimes looks like it's working eg. enter a number)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.