Changeset d64f963 for owl.c


Ignore:
Timestamp:
Mar 7, 2010, 6:56:51 PM (15 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.10, release-1.6, release-1.7, release-1.8, release-1.9
Children:
b30c256
Parents:
30c5aab
git-author:
David Benjamin <davidben@mit.edu> (10/26/09 16:48:25)
git-committer:
David Benjamin <davidben@mit.edu> (03/07/10 18:56:51)
Message:
Prefer popwin to typwin for cursor placement

If we somehow have a popwin open while the typwin is active, the popwin
should have preferred cursor position. This makes the cursor position
match the ordering in the old owl_process_input_char.

We should probably associate a WINDOW with each context, but that might
want to wait until we get a wrapper that persists across resizes. PANEL
might work, but if we ever use subwins...

Signed-off-by: David Benjamin <davidben@mit.edu>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • owl.c

    r8099357 rd64f963  
    628628      update_panels();
    629629      /* leave the cursor in the appropriate window */
    630       if (owl_global_is_typwin_active(&g)) {
     630      if (!owl_popwin_is_active(owl_global_get_popwin(&g))
     631          && owl_global_is_typwin_active(&g)) {
    631632        owl_function_set_cursor(typwin);
    632633      } else {
Note: See TracChangeset for help on using the changeset viewer.