[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Solution to my query about event queue

Hello! I have myself solved the problem of finding out the length of the event queue. Here is the modified code.

#include <X11/Xlib.h>
#include <stdio.h>

int main()
	char *displayname = NULL;
	Display *dpy;
	dpy = XOpenDisplay (displayname);
	    	if (!dpy)
			printf("Error opening display!\n");	
	printf("%d",QLength(dpy));  /* modification */
	return 0;

Anyway, still to get a reply about "keytable", "bit vector of keyboard" and "asscoiating a keypress with the actual value".

- Karthika

Chat with your friends as soon as they come online. Get Rediff Bol at