Move current win check to event, removed next and prev win functions

This commit is contained in:
James Booth
2015-04-30 22:43:08 +01:00
parent d68fb25dde
commit e11e55e31a
7 changed files with 30 additions and 90 deletions

View File

@@ -33,11 +33,14 @@
*/
#include "ui/ui.h"
#include "ui/windows.h"
void
ui_ev_focus_win(ProfWin *win)
{
ui_switch_win(win);
if (!wins_is_current(win)) {
ui_switch_win(win);
}
}
ProfChatWin*