# include "Ximage.h"

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

  int screen;
  Window rootwindow;

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

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

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

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

}

