mirror of
https://github.com/weechat/weechat.git
synced 2026-07-04 00:33:13 +02:00
Fix "inactivity" value when no key has been pressed since WeeChat started (bug #28930)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
WeeChat ChangeLog
|
||||
=================
|
||||
FlashCode <flashcode@flashtux.org>
|
||||
v0.3.2-dev, 2010-02-18
|
||||
v0.3.2-dev, 2010-02-19
|
||||
|
||||
|
||||
Version 0.3.2 (under dev!)
|
||||
@@ -26,6 +26,8 @@ Version 0.3.2 (under dev!)
|
||||
and in buffer infolist
|
||||
* api: add description of arguments for functions hook_info and hook_infolist
|
||||
* api: fix function "color" in Lua script API
|
||||
* api: fix "inactivity" value when no key has been pressed since WeeChat started
|
||||
(bug #28930)
|
||||
* irc: add SASL authentication, with PLAIN and DH-BLOWFISH mechanisms
|
||||
(task #8829)
|
||||
* irc: fix crash with SSL connection if option ssl_cert is set (bug #28752)
|
||||
|
||||
+2
-14
@@ -26,6 +26,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <ctype.h>
|
||||
#include <time.h>
|
||||
|
||||
#include "../core/weechat.h"
|
||||
#include "../core/wee-hook.h"
|
||||
@@ -76,20 +77,7 @@ gui_keyboard_init ()
|
||||
gui_key_combo_buffer[0] = '\0';
|
||||
gui_key_grab = 0;
|
||||
gui_key_grab_count = 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* gui_keyboard_init_last_activity_time: init last activity time with current
|
||||
* time
|
||||
*/
|
||||
|
||||
void
|
||||
gui_keyboard_init_last_activity_time ()
|
||||
{
|
||||
struct timeval tv_time;
|
||||
|
||||
gettimeofday (&tv_time, NULL);
|
||||
gui_keyboard_last_activity_time = tv_time.tv_sec;
|
||||
gui_keyboard_last_activity_time = time (NULL);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user