Skip to content

Commit

Permalink
Adjust a delay in the gtk3 frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
xyproto committed Jun 17, 2024
1 parent f7c6314 commit ebe984d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gtk3/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ void signal_and_quit()
kill(child_pid, SIGUSR1);
}
// This lets o save the file and then sleep a tiny bit, then quit the parent
usleep(200000); // will sleep for 0.2s
usleep(20000);
kill(child_pid, SIGTERM);
}
gtk_main_quit();
Expand All @@ -56,7 +56,7 @@ void wait_and_quit()
// Unlock the file by sending an unlock signal (USR1)
kill(child_pid, SIGUSR1);
}
usleep(200000); // will sleep for 0.2s
usleep(20000);
gtk_main_quit();
}

Expand All @@ -71,7 +71,7 @@ void trigger_redraw()

void signal_handler(int signal_num)
{
usleep(200000); // will sleep for 0.2s
usleep(20000);
// If we are here, it means we received a SIGWINCH signal from o.
// This means that o is ready to resize.
// Answer by sending SIGWINCH to o (the child_pid), to make it
Expand Down

0 comments on commit ebe984d

Please sign in to comment.