Hello, I want to connect for the close event. The code is like:
Code:
class App
{
   public:
      static int main(...);
      static void onClose();
};

int App::main()
{
      CL_DisplayWindow window("Wnd", width, height, fullscreen);     
      window.sig_window_close().connect(App::onClose); // This works for static function
      // ...
}
Everything is okay (builds, runs) except that the window doesn't have close button. When I don't connect at close event the button exists but doesn't work What's wrong?