diff options
author | James Booth <boothj5@gmail.com> | 2015-04-30 22:43:08 +0100 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2015-04-30 22:43:08 +0100 |
commit | e11e55e31abced2f4e7fa332298485562adaf1ef (patch) | |
tree | 90ffc085585e311c4a6bef82f48f2b1e572e86e9 /src/ui/windows.c | |
parent | d68fb25ddef2f30c9d17991aa5d1d0e2a36d8386 (diff) | |
download | profani-tty-e11e55e31abced2f4e7fa332298485562adaf1ef.tar.gz |
Move current win check to event, removed next and prev win functions
Diffstat (limited to 'src/ui/windows.c')
-rw-r--r-- | src/ui/windows.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ui/windows.c b/src/ui/windows.c index 4cc0fef7..7a86403b 100644 --- a/src/ui/windows.c +++ b/src/ui/windows.c @@ -53,6 +53,7 @@ #include "ui/statusbar.h" #include "ui/window.h" #include "ui/windows.h" +#include "event/ui_events.h" static GHashTable *windows; static int current; @@ -661,7 +662,7 @@ wins_swap(int source_win, int target_win) } if (wins_get_current_num() == source_win) { wins_set_current_by_num(target_win); - ui_switch_win(console); + ui_ev_focus_win(console); } return TRUE; @@ -682,7 +683,7 @@ wins_swap(int source_win, int target_win) status_bar_active(source_win); } if ((wins_get_current_num() == source_win) || (wins_get_current_num() == target_win)) { - ui_switch_win(console); + ui_ev_focus_win(console); } return TRUE; } @@ -742,7 +743,7 @@ wins_tidy(void) windows = new_windows; current = 1; ProfWin *console = wins_get_console(); - ui_switch_win(console); + ui_ev_focus_win(console); g_list_free(keys); return TRUE; } else { |