From 3549bd8b10ce8058bd63009396b779d980bdeb4a Mon Sep 17 00:00:00 2001 From: Bob Polis Date: Fri, 29 Jan 2021 17:18:28 +0100 Subject: [PATCH] Removed custom event handler --- main.cpp | 4 ---- 1 file changed, 4 deletions(-) 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)};