about summary refs log tree commit diff stats
path: root/src/event
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2015-04-29 22:10:32 +0100
committerJames Booth <boothj5@gmail.com>2015-04-29 22:10:32 +0100
commit0df8b8beff8aeeae072beee8fc3ed69f9d132fb2 (patch)
tree0adc8936ae6e69c481c647d953f958472e0c47e7 /src/event
parent8de308c96af476de607d7ba5ecee5dc7c990ffc5 (diff)
downloadprofani-tty-0df8b8beff8aeeae072beee8fc3ed69f9d132fb2.tar.gz
Return new window on new chat win event
Diffstat (limited to 'src/event')
-rw-r--r--src/event/ui_events.c5
-rw-r--r--src/event/ui_events.h2
2 files changed, 3 insertions, 4 deletions
diff --git a/src/event/ui_events.c b/src/event/ui_events.c
index c079c0e6..5e16cc43 100644
--- a/src/event/ui_events.c
+++ b/src/event/ui_events.c
@@ -40,9 +40,8 @@ ui_ev_focus_win(ProfWin *win)
     ui_switch_win(win);
 }
 
-void
+ProfWin*
 ui_ev_new_chat_win(const char * const barejid)
 {
-    ProfWin *win = ui_new_chat_win(barejid);
-    ui_switch_win(win);
+    return ui_new_chat_win(barejid);
 }
\ No newline at end of file
diff --git a/src/event/ui_events.h b/src/event/ui_events.h
index 77017d2c..9e2dc7ee 100644
--- a/src/event/ui_events.h
+++ b/src/event/ui_events.h
@@ -36,6 +36,6 @@
 #define UI_EVENTS_H
 
 void ui_ev_focus_win(ProfWin *win);
-void ui_ev_new_chat_win(const char * const barejid);
+ProfWin* ui_ev_new_chat_win(const char * const barejid);
 
 #endif
\ No newline at end of file