Re: [dev] smessage

From: Ivan Kanakarakis <ivan.kanak_AT_gmail.com>
Date: Thu, 23 Feb 2012 15:20:41 +0200

There's XkbKeycodeToKeysym which needs theX11/XKBlib.h
Here's the man page relevant part:

       The XKeycodeToKeysym function uses internal Xlib tables and returns
the KeySym defined for the specified KeyCode and the element of the Key‐
       Code vector. If no symbol is defined, XKeycodeToKeysym returns
NoSymbol. XKeycodeToKeysym predates the XKB extension. If you want to
lookup
       a KeySym while using XKB you have to use XkbKeycodeToKeysym.

SEE ALSO
       XLookupKeysym(3)
       Xlib - C Language X Interface


On 23 February 2012 14:30, Bartosz Pranczke <b.pranczke_AT_gmail.com> wrote:

> I have a warning preventing this from compile.
>
> cc -Wall -Wextra -Werror -std=c99 -pedantic -I/usr/X11R6/include
> -D_BSD_SOURCE -D_POSIX_C_SOURCE=2 -DNAME=\"smessage\"
> -DVERSION=\"ALPHA\" -c smessage.c
> smessage.c: In function ‘handlekey’:
> smessage.c:568:2: error: ‘XKeycodeToKeysym’ is deprecated (declared at
> /usr/include/X11/Xlib.h:1695) [-Werror=deprecated-declarations]
> cc1: all warnings being treated as errors
>
> make: *** [smessage.o] Error 1
>
>
>
> On 11:55 Tue 21 Feb , Florian Limberger wrote:
> > Greetings list,
> >
> > I have hacked up a simple xmessage replacement which looks neater,
> > has dmenu-like handling and supports unicode.
> >
> > Since this is my first real project, I appreciate serious criticism of
> > the code.
> >
> > Thanks go out to Christoph Lohmann for svkb/thingmenu, which inspired
> > various pieces of code.
> >
> > I do not consider the program finished yet, just grep for TODO to see
> > what I mean.
> >
> > -flo
>
>


-- 
*Ivan c00kiemon5ter V Kanakarakis *
Received on Thu Feb 23 2012 - 14:20:41 CET

This archive was generated by hypermail 2.3.0 : Thu Feb 23 2012 - 14:24:06 CET