diff options
Diffstat (limited to 'gtk/testgtk.c')
-rw-r--r-- | gtk/testgtk.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/gtk/testgtk.c b/gtk/testgtk.c index a2b6a78dea..6a63cef7f0 100644 --- a/gtk/testgtk.c +++ b/gtk/testgtk.c @@ -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", |