Changeset 1fd4cd3e


Ignore:
Timestamp:
Dec 1, 2003, 2:22:36 PM (20 years ago)
Author:
Erik Nygren <nygren@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
2e76340
Parents:
3162c8a
Message:
Replace the main loop continue in the keyboard handler with an else.
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    rf82e233 r1fd4cd3e  
    1414                the password.  ;)
    1515        Un-word-wrap text when sending AIM messages.
     16        Replace the main loop continue in the keyboard handler with an else.
    1617       
    17182.0.12
  • owl.c

    rc9e72d1 r1fd4cd3e  
    557557    if (j==ERR) {
    558558      usleep(10);
    559       continue;
    560     }
    561     /* find and activate the current keymap.
    562      * TODO: this should really get fixed by activating
    563      * keymaps as we switch between windows...
    564      */
    565     if (pw && owl_popwin_is_active(pw) && owl_global_get_viewwin(&g)) {
    566       owl_context_set_popless(owl_global_get_context(&g),
    567                               owl_global_get_viewwin(&g));
    568       owl_function_activate_keymap("popless");
    569     } else if (owl_global_is_typwin_active(&g)
    570                && owl_editwin_get_style(tw)==OWL_EDITWIN_STYLE_ONELINE) {
    571       /*
    572       owl_context_set_editline(owl_global_get_context(&g), tw);
    573       owl_function_activate_keymap("editline");
    574       */
    575     } else if (owl_global_is_typwin_active(&g)
    576                && owl_editwin_get_style(tw)==OWL_EDITWIN_STYLE_MULTILINE) {
    577       owl_context_set_editmulti(owl_global_get_context(&g), tw);
    578       owl_function_activate_keymap("editmulti");
    579559    } else {
    580       owl_context_set_recv(owl_global_get_context(&g));
    581       owl_function_activate_keymap("recv");
    582     }
    583     /* now actually handle the keypress */
    584     ret = owl_keyhandler_process(owl_global_get_keyhandler(&g), j);
    585     if (ret!=0 && ret!=1) {
    586       owl_function_makemsg("Unable to handle keypress");
     560      /* find and activate the current keymap.
     561       * TODO: this should really get fixed by activating
     562       * keymaps as we switch between windows...
     563       */
     564      if (pw && owl_popwin_is_active(pw) && owl_global_get_viewwin(&g)) {
     565        owl_context_set_popless(owl_global_get_context(&g),
     566                                owl_global_get_viewwin(&g));
     567        owl_function_activate_keymap("popless");
     568      } else if (owl_global_is_typwin_active(&g)
     569                 && owl_editwin_get_style(tw)==OWL_EDITWIN_STYLE_ONELINE) {
     570        /*
     571          owl_context_set_editline(owl_global_get_context(&g), tw);
     572          owl_function_activate_keymap("editline");
     573        */
     574      } else if (owl_global_is_typwin_active(&g)
     575                 && owl_editwin_get_style(tw)==OWL_EDITWIN_STYLE_MULTILINE) {
     576        owl_context_set_editmulti(owl_global_get_context(&g), tw);
     577        owl_function_activate_keymap("editmulti");
     578      } else {
     579        owl_context_set_recv(owl_global_get_context(&g));
     580        owl_function_activate_keymap("recv");
     581      }
     582      /* now actually handle the keypress */
     583      ret = owl_keyhandler_process(owl_global_get_keyhandler(&g), j);
     584      if (ret!=0 && ret!=1) {
     585        owl_function_makemsg("Unable to handle keypress");
     586      }
    587587    }
    588588
     
    601601      }
    602602    }
     603
     604    owl_function_debugmsg("main loop iteration end");
    603605
    604606  }
Note: See TracChangeset for help on using the changeset viewer.