From 7de300dcc4adc425128cadd8e8364e626cf84948 Mon Sep 17 00:00:00 2001 From: Keiko Katsuragawa <kkatsuragawa@uwaterloo.ca> Date: Wed, 10 Jan 2018 00:59:32 -0500 Subject: [PATCH] use sleep instead of usleep --- x/1-4-Drawing/drawing.min.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x/1-4-Drawing/drawing.min.cpp b/x/1-4-Drawing/drawing.min.cpp index 255e21a..ad86d7e 100644 --- a/x/1-4-Drawing/drawing.min.cpp +++ b/x/1-4-Drawing/drawing.min.cpp @@ -33,8 +33,8 @@ int main( int argc, char* argv[] ) { XMapRaised(display, window); XFlush(display); - // give server 10ms to get set up before sending drawing commands - usleep(10 * 1000); + // give server time to setup + sleep(1); // drawing demo with graphics context here ... -- GitLab