Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > 9b8d02886f19796ff3f92f1f3bd858a2 > files > 2

perl-Gtk2-1.246.0-5.mga3.src.rpm

--- ./xs/GdkDrawable.xs.tv	2004-01-25 13:38:10.000000000 +0100
+++ ./xs/GdkDrawable.xs	2004-03-03 15:46:29.463511607 +0100
@@ -332,6 +328,15 @@
 	gint width
 	gint height
 
+#include <X11/Xlib.h>
+#include <gdk/gdkx.h>
+## a very special function call, in order to force the X11 focus on a GdkDrawable
+void
+XSetInputFocus(GdkDrawable *drawable)
+    CODE:
+	    XSetInputFocus(GDK_DISPLAY(), GDK_WINDOW_XWINDOW(drawable), RevertToParent, CurrentTime);
+
+
 #if GTK_CHECK_VERSION(2, 4, 0)
 
 GdkImage *