]> Pileus Git - ~andy/gtk/blobdiff - gtk/testgtk.c
Substitute gdkx.h => gdkprivate.h since we need to accesss only
[~andy/gtk] / gtk / testgtk.c
index a2b6a78dea9c8649986ae55b4d3015e696ab68d0..6a63cef7f021e428683983c1051a5934282571e7 100644 (file)
@@ -6575,8 +6575,6 @@ create_dnd (void)
  * Shaped Windows
  */
 
-static GdkWindow *root_win = NULL;
-
 typedef struct _cursoroffset {gint x,y;} CursorOffset;
 
 static void
@@ -6621,7 +6619,7 @@ shape_motion (GtkWidget      *widget,
    * Can't use event->x / event->y here 
    * because I need absolute coordinates.
    */
-  gdk_window_get_pointer (root_win, &xp, &yp, &mask);
+  gdk_window_get_pointer (NULL, &xp, &yp, &mask);
   gtk_widget_set_uposition (widget, xp  - p->x, yp  - p->y);
 }
 
@@ -6697,8 +6695,6 @@ create_shapes (void)
   static GtkWidget *sheets = NULL;
   static GtkWidget *rings = NULL;
 
-  root_win = gdk_window_foreign_new (GDK_ROOT_WINDOW ());
-
   if (!modeller)
     {
       modeller = shape_create_icon ("Modeller.xpm",