
// gcc -o test test.c `pkg-config --cflags --libs gtk+-2.0`

#include <gtk/gtk.h>
#include <gdk/gdk.h>
#include <gdk/gdkx.h>

void
init_kbd (GtkWidget *widget)
{
	gtk_widget_show (widget);
	gdk_window_set_user_data (gdk_get_default_root_window (), widget);
	gdk_window_set_events (gdk_get_default_root_window (),
			GDK_KEY_PRESS_MASK);
}

int main (int argc, char **argv)
{
	GtkWidget *inv;

	gtk_init (&argc, &argv);

	inv = gtk_invisible_new ();
	init_kbd (inv);

	gtk_main ();
}

