Trouble rendering in SubWindow

My program has a main window and a subwindow but I am unable to draw in the subwindow.

here is a short piece of code:

void blueDisplay(void)
{
glutSetWindow(blueWin);
glClear(GL_COLOR_BUFFER_BIT);
glColor3f(255,255,255);
glBegin(GL_LINES);
glVertex3f(10,10,0);
glVertex3f(10,60,0);
glEnd();
glFlush();
glutSwapBuffers();
}

I use a double buffer.
The reshape function looks like this

void blueReshape(int window_w, int window_h)
{
glutSetWindow(blueWin);
glViewport(x,y,w,h); glMatrixMode(GL_PROJECTION);
glLoadIdentity();
gluOrtho2D( 0 ,w,0,h);
glMatrixMode(GL_MODELVIEW);
}

Can anyone help me pleaaaaaaaaaase