Blank window ohne decoration mit xlib unter linux

hallo,
ich benutze die xlib Bibliothek und habe einen Fenster ohne Decoration erstellt (Fenster
ohne max und min icon) mit hilfe der window attribute override_redirect=true.
aber mein Fenster reagiert nicht mehr auf die Tastatur-Events.
hier der Code:

myWindowAttributes.border_pixel =
BlackPixel (myDisplay, myScreen);
myWindowAttributes.background_pixel =
WhitePixel (myDisplay, myScreen);
myWindowAttributes.override_redirect = True;

myWindowMask = CWBackPixel | CWBorderPixel | CWOverrideRedirect;

myWindow = XCreateWindow (myDisplay, RootWindow (myDisplay, myScreen),
x, y, width, height, border_width, myDepth, InputOutput,
CopyFromParent, myWindowMask, &myWindowAttributes);

wie kann ich einen blank window erstellen das, wie ein normales Fenster verhält(event
handling unz…)

danke im voraus
youssef