Added getxwindowin() method
diff --git a/Modules/stdwinmodule.c b/Modules/stdwinmodule.c
index 9b436af..8a652e3 100644
--- a/Modules/stdwinmodule.c
+++ b/Modules/stdwinmodule.c
@@ -1535,6 +1535,17 @@
 	return None;
 }
 
+#ifdef CWI_HACKS
+static object *
+window_getxwindowid(self, args)
+	windowobject *self;
+	object *args;
+{
+	long wid = wgetxwindowid(self->w_win);
+	return newintobject(wid);
+}
+#endif
+
 static struct methodlist window_methods[] = {
 	{"begindrawing",window_begindrawing},
 	{"change",	window_change},
@@ -1553,6 +1564,9 @@
 	{"setwincursor",window_setwincursor},
 	{"show",	window_show},
 	{"textcreate",	window_textcreate},
+#ifdef CWI_HACKS
+	{"getxwindowid",window_getxwindowid},
+#endif
 	{NULL,		NULL}		/* sentinel */
 };