title: SDL Window can't be restored after minimising
body: <p>The problem occurs when</p>
  
  <pre><code>SDL_RestoreWindow(gameWindow);
  </code></pre>
  
  <p>is called on a minimised window. The window does not re-appear.</p>
  
  <p>I've made a little dummy program simulating the sort of SDL calls that my main program is calling, and the problem reproduces. Here is the code:</p>
  
  <pre><code>#include &lt;SDL.h&gt;
  
  int main(int argn, char **argv)
  {
      // The windows    
      SDL_Window *gameWindow;           
  
      // Initialise
      SDL_Init(SDL_INIT_EVERYTHING);             
  
      // Create window
      gameWindow = SDL_CreateWindow(
          "Game Window",                 
          SDL_WINDOWPOS_UNDEFINED,           
          SDL_WINDOWPOS_UNDEFINED,           
          640,                               
          480,                               
          SDL_WINDOW_OPENGL                  
      );
  
      // Minimise/ hide or whatever?
      SDL_MinimizeWindow(gameWindow);
  
      // Wait
      SDL_Delay(1000);
  
      // Attempt to bring back the window
      SDL_RestoreWindow(gameWindow);
  
      // program would run here
      SDL_Delay(1000);
  
      // quit out
      SDL_DestroyWindow(gameWindow);
  
      // Clean up
      SDL_Quit();
      return 0;
  }
  </code></pre>
  
  <p>Any ideas as to why this gameWindow is not re-appearing?
  Is SDL_Restore not designed to restore a minimised window?</p>
  
  <p>Also FYI This is running on Ubuntu 13.10 and compiling with gcc 4.8.1 and Gnome metacity 2.34.13</p>