about summary refs log tree commit diff stats
path: root/profanity.c
diff options
context:
space:
mode:
Diffstat (limited to 'profanity.c')
-rw-r--r--profanity.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/profanity.c b/profanity.c
index 11dd0e0c..61dcac5b 100644
--- a/profanity.c
+++ b/profanity.c
@@ -45,13 +45,16 @@ void profanity_run(void)
         int size = 0;
 
         while(ch != '\n') {
-            gui_refresh();
-            jabber_process_events();
-            inp_get_char(&ch, inp, &size);
             win_handle_special_keys(&ch);
+
             if (ch == KEY_RESIZE) {
                 gui_resize(ch, inp, size);
             }
+            
+            gui_refresh();
+            jabber_process_events();
+            
+            inp_get_char(&ch, inp, &size);
         }
 
         inp[size++] = '\0';