gint y = y;
gint y = 0;
is_mouse_in_window (GdkWindow* aWindow, gdouble aMouseX, gdouble aMouseY){    gint x = 0;    gint y = y;    gint w, h;    gint offsetX = 0;    gint offsetY = 0;    GtkWidget *widget;    GdkWindow *window;    window = aWindow;    while (window) {        gint tmpX = 0;        gint tmpY = 0;        gdk_window_get_position(window, &tmpX, &tmpY);        widget = get_gtk_widget_for_gdk_window(window);        // if this is a window, compute x and y given its origin and our        // offset        if (GTK_IS_WINDOW(widget)) {            x = tmpX + offsetX;            y = tmpY + offsetY;            break;        }        offsetX += tmpX;        offsetY += tmpY;        window = gdk_window_get_parent(window);    }    gdk_window_get_size(aWindow, &w, &h);    if (aMouseX > x && aMouseX < x + w &&        aMouseY > y && aMouseY < y + h)        return PR_TRUE;    return PR_FALSE;}