sites

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 7d4e070f16723380a5893a5de77e5f7ca2ef919f
parent 87f9dbf677a6d8e535b9ac46a8deff4813ba4236
Author: Thomas Adam <thomas.adam22@gmail.com>
Date:   Sun, 13 Dec 2009 20:56:21 +0000

Handle KP_Decimal in dmenu.

This patch handles the decimal key on keypads within dmenu.
Diffstat:
Atools.suckless.org/dmenu/patches/allow-kp_decimal-in-dmenu.patch | 12++++++++++++
Atools.suckless.org/dmenu/patches/kp_decimal.md | 14++++++++++++++
2 files changed, 26 insertions(+), 0 deletions(-)

diff --git a/tools.suckless.org/dmenu/patches/allow-kp_decimal-in-dmenu.patch b/tools.suckless.org/dmenu/patches/allow-kp_decimal-in-dmenu.patch @@ -0,0 +1,12 @@ +diff -r 4684b2cf4eab dmenu.c +--- a/dmenu.c Sat Dec 05 16:52:53 2009 +0000 ++++ b/dmenu.c Sun Dec 13 20:50:57 2009 +0000 +@@ -395,6 +395,8 @@ + ksym = XK_Return; + else if(ksym >= XK_KP_0 && ksym <= XK_KP_9) + ksym = (ksym - XK_KP_0) + XK_0; ++ else if(ksym == XK_KP_Decimal) ++ ksym = XK_period; + } + if(IsFunctionKey(ksym) || IsKeypadKey(ksym) + || IsMiscFunctionKey(ksym) || IsPFKey(ksym) diff --git a/tools.suckless.org/dmenu/patches/kp_decimal.md b/tools.suckless.org/dmenu/patches/kp_decimal.md @@ -0,0 +1,14 @@ +KEYPAD DECIMAL KEY +================== + +This patch allows the decimal key on keypads to input a decimal in dmeni. + +Download +-------- + +* [allow-kp_decimal-in-dmenu.patch](allow-kp_decimal-in-dmenu.patch) + +Author +------ + +* Thomas Adam (thomas_adam) <[thomas.adam22@gmail.com](mailto:thomas.adam22@gmail.com)>