title: BadMatch (invalid parameter attributes) error with X11 library
body: <p>Code below will throw Bad Match error, from XChangeWindowAttributes function call.</p>
  
  <p>I did some research on this, the Bad Match error only threw when the window that passed as parameter is input only, but I'm pretty sure I set the MenuModeWindow to be InputOutput. How can I fix this problem?</p>
  
  <pre><code>MenuModeWindow = XCreateWindow(
          BOTIFDisplay,   /* display */
          BOTIFParentWindow,  /* parent window */
          xstart - 144/* 155 */,
          ystart,     /* top left y */
          winwidth + winwidthalter,       /* win width */
          winheight,      /* win height */
          0,      /* border width */
          CopyFromParent,
          InputOutput,
          CopyFromParent,
          valuemask,
          &amp;winatt);
      if(InBOTIFColor())
          XSetWindowBackground(BOTIFDisplay, MenuModeWindow,
              ParentActiveBackGroundPixel);
      else
          XSetWindowBackgroundPixmap(BOTIFDisplay, MenuModeWindow,
              GrayPixMaps[125]);
  </code></pre>