Attention flag - Implemented Alt+m
This commit is contained in:
@@ -36,7 +36,6 @@
|
||||
#define _XOPEN_SOURCE_EXTENDED
|
||||
#include "config.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <stdio.h>
|
||||
#include <sys/select.h>
|
||||
#include <stdlib.h>
|
||||
@@ -815,15 +814,7 @@ static int
|
||||
_inp_rl_win_attention_handler(int count, int key) {
|
||||
ProfWin* current = wins_get_current();
|
||||
if ( current ) {
|
||||
if (current->type == WIN_CHAT) {
|
||||
ProfChatWin* chatwin = (ProfChatWin*)current;
|
||||
assert(chatwin->memcheck == PROFCHATWIN_MEMCHECK);
|
||||
chatwin->has_attention = !chatwin->has_attention;
|
||||
} else if (current->type == WIN_MUC) {
|
||||
ProfMucWin* mucwin = (ProfMucWin*)current;
|
||||
assert(mucwin->memcheck == PROFMUCWIN_MEMCHECK);
|
||||
mucwin->has_attention = !mucwin->has_attention;
|
||||
}
|
||||
win_toggle_attention(current);
|
||||
win_redraw(current);
|
||||
}
|
||||
return 0;
|
||||
@@ -831,7 +822,10 @@ _inp_rl_win_attention_handler(int count, int key) {
|
||||
|
||||
static int
|
||||
_inp_rl_win_attention_next_handler(int count, int key) {
|
||||
//ProfWin* current = wins_get_current();
|
||||
ProfWin* window = wins_get_next_attention();
|
||||
if (window) {
|
||||
ui_focus_win(window);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user