diff --git a/main.cpp b/main.cpp index d5869f6..3dbb6a2 100644 --- a/main.cpp +++ b/main.cpp @@ -117,10 +117,6 @@ int main(int argc, const char * argv[]) { // main window sc::gui::Window& window {sc::gui::Window::new_window("living art")}; main_window = &window; - window.add_event_handler([](const SDL_Event& event, bool quit) -> bool { - std::cerr << "closing window " << event.window.windowID << '\n'; - return quit; - }, SDL_WINDOWEVENT_CLOSE); // create an SDL drawing surface and connect it to cairo SDL_Surface* s {SDL_CreateRGBSurface(0, WIDTH, HEIGHT, 32, 0x00ff0000, 0x0000ff00, 0x000000ff, 0)};