version 1.5, 2009/06/26 22:12:19 |
version 1.6, 2009/07/07 19:49:19 |
|
|
unlink(socket_path); |
unlink(socket_path); |
xfree(socket_path); |
xfree(socket_path); |
|
|
options_free(&global_options); |
options_free(&global_s_options); |
options_free(&global_window_options); |
options_free(&global_w_options); |
if (server_password != NULL) |
if (server_password != NULL) |
xfree(server_password); |
xfree(server_password); |
|
|
|
|
yy = c->tty.sy - 1; |
yy = c->tty.sy - 1; |
if (xx == 0 || yy == 0) |
if (xx == 0 || yy == 0) |
return; |
return; |
colour = options_get_number( |
colour = options_get_number(&global_w_options, "clock-mode-colour"); |
&global_window_options, "clock-mode-colour"); |
style = options_get_number(&global_w_options, "clock-mode-style"); |
style = options_get_number( |
|
&global_window_options, "clock-mode-style"); |
|
|
|
screen_init(&screen, xx, yy, 0); |
screen_init(&screen, xx, yy, 0); |
|
|
|
|
time_t t; |
time_t t; |
|
|
t = time(NULL); |
t = time(NULL); |
xtimeout = options_get_number(&global_options, "lock-after-time"); |
xtimeout = options_get_number(&global_s_options, "lock-after-time"); |
if (xtimeout > 0 && t > server_activity + xtimeout) |
if (xtimeout > 0 && t > server_activity + xtimeout) |
server_lock(); |
server_lock(); |
|
|