mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-09-26 12:27:58 +08:00
assign value to __mg_tick_counter when startup
This commit is contained in:
+3
-1
@@ -121,7 +121,7 @@ BOOL client_ClientStartup (void)
|
||||
struct sigaction siga;
|
||||
|
||||
/* connect to server */
|
||||
if ( (conn_fd = cli_conn (CS_PATH, 'a')) < 0)
|
||||
if ((conn_fd = cli_conn (CS_PATH, 'a')) < 0)
|
||||
return FALSE;
|
||||
|
||||
FD_SET (conn_fd, &__mg_dsk_msg_queue->rfdset);
|
||||
@@ -575,6 +575,8 @@ GHANDLE GUIAPI JoinLayer (const char* layer_name, const char* client_name,
|
||||
__mg_zorder_info = zi;
|
||||
}
|
||||
|
||||
__mg_tick_counter = SHAREDRES_TIMER_COUNTER;
|
||||
|
||||
__mg_start_client_desktop ();
|
||||
|
||||
ret:
|
||||
|
||||
Reference in New Issue
Block a user