Skip to content

Commit

Permalink
#339 remove debug prints
Browse files Browse the repository at this point in the history
  • Loading branch information
koekeishiya committed Dec 15, 2019
1 parent e94af8d commit 605d7d7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 0 additions & 2 deletions src/event.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down
6 changes: 2 additions & 4 deletions src/window_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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)
Expand Down

0 comments on commit 605d7d7

Please sign in to comment.