# include "Ximage.h"

/************** TopWindow *************/
void TopWindow (Icon *icon) {

  Window rootwindow;

  rootwindow = RootWindow (graphic.display, graphic.screen);

  CreateWindow (rootwindow, BORDER_WIDTH, EVENT_MASK);
  MakeGC ();

  icon[0].pixmap = XCreateBitmapFromData (graphic.display, graphic.window, (char *) icon[0].bits, icon[0].width, icon[0].height);

  MakeCursor (DEFAULT_CURSOR);
  XFreeCursor (graphic.display, graphic.cursor);
  FlushDisplay ();

}

