diff options
Diffstat (limited to 'src/event')
-rw-r--r-- | src/event/ui_events.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/event/ui_events.c b/src/event/ui_events.c index 2ad7562d..bebffc07 100644 --- a/src/event/ui_events.c +++ b/src/event/ui_events.c @@ -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* |