mirror of
https://github.com/Tha14/toxic.git
synced 2024-11-12 23:33:03 +01:00
toxic: Fixed doMessenger() interval.. Toxic is much faster and responsive now.
This commit is contained in:
parent
99410a5100
commit
3c43b27617
8
main.c
8
main.c
@ -91,7 +91,7 @@ static void init_term() {
|
||||
cbreak();
|
||||
keypad(stdscr, 1);
|
||||
noecho();
|
||||
timeout(2000);
|
||||
timeout(100);
|
||||
|
||||
if(has_colors()) {
|
||||
start_color();
|
||||
@ -255,15 +255,15 @@ static void draw_bar() {
|
||||
attron(A_BOLD);
|
||||
}
|
||||
|
||||
odd = (odd+1) % 2;
|
||||
odd = (odd+1) % 10;
|
||||
|
||||
if(windows[i].blink && odd) {
|
||||
if(windows[i].blink && (odd < 5)) {
|
||||
attron(COLOR_PAIR(3));
|
||||
}
|
||||
|
||||
printw(" %s", windows[i].title);
|
||||
|
||||
if(windows[i].blink && odd) {
|
||||
if(windows[i].blink && (odd < 5)) {
|
||||
attron(COLOR_PAIR(3));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user