From 605d7d7d3acb8c4e9effb6f3b9db27658e22d428 Mon Sep 17 00:00:00 2001 From: koekeishiya Date: Sun, 15 Dec 2019 13:49:34 +0100 Subject: [PATCH] #339 remove debug prints --- src/event.c | 2 -- src/window_manager.c | 6 ++---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/event.c b/src/event.c index f8dae672..0cf40baf 100644 --- a/src/event.c +++ b/src/event.c @@ -679,10 +679,8 @@ static EVENT_CALLBACK(EVENT_HANDLER_WINDOW_RESIZED) // because we are not actually able to interact with the window. // - printf("%s: Display is animating\n", __FUNCTION__); usleep(100000); } - printf("%s: Display finished animating\n", __FUNCTION__); if (window_manager_should_manage_window(window) && !window_manager_find_managed_window(&g_window_manager, window)) { struct view *view = space_manager_tile_window_on_space(&g_space_manager, window, window_space(window)); diff --git a/src/window_manager.c b/src/window_manager.c index 6365b90d..33fd605e 100644 --- a/src/window_manager.c +++ b/src/window_manager.c @@ -1412,8 +1412,7 @@ void window_manager_toggle_window_native_fullscreen(struct space_manager *sm, st // before we can change its fullscreen attribute. We focus the // window and spin lock until a potential space animation has finished. window_manager_focus_window_with_raise(&window->application->psn, window->id, window->ref); - while (sid != space_manager_active_space()) { printf("%s: focus change spin lock\n", __FUNCTION__); usleep(100000); } - printf("%s: focus change finished\n", __FUNCTION__); + while (sid != space_manager_active_space()) { usleep(100000); } if (!window_is_fullscreen(window)) { AXUIElementSetAttributeValue(window->ref, kAXFullscreenAttribute, kCFBooleanTrue); @@ -1423,8 +1422,7 @@ void window_manager_toggle_window_native_fullscreen(struct space_manager *sm, st // NOTE(koekeishiya): We toggled the fullscreen attribute and must // now spin lock until the post-exit space animation has finished. - while (sid == space_manager_active_space()) { printf("%s: post animation spin lock\n", __FUNCTION__); usleep(100000); } - printf("%s: post animation finished\n", __FUNCTION__); + while (sid == space_manager_active_space()) { usleep(100000); } } void window_manager_toggle_window_parent(struct space_manager *sm, struct window_manager *wm, struct window *window)