diff --git a/src/kernel/desktop-ths.c b/src/kernel/desktop-ths.c index 3a9fc4c6..c7b06f2b 100644 --- a/src/kernel/desktop-ths.c +++ b/src/kernel/desktop-ths.c @@ -150,6 +150,9 @@ void* __kernel_desktop_main (void* data) return NULL; } + /* for threads mode, the idle handler for desktop thread is NULL */ + __mg_dsk_msg_queue->OnIdle = NULL; + /* init desktop window */ init_desktop_win ();