about summary refs log tree commit diff stats
path: root/src/event
diff options
context:
space:
mode:
Diffstat (limited to 'src/event')
-rw-r--r--src/event/ui_events.c5
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*