Changeset 385fda9 for owl.c


Ignore:
Timestamp:
Jun 1, 2010, 9:54:19 PM (11 years ago)
Author:
David Benjamin <davidben@mit.edu>
Branches:
master, release-1.7, release-1.8, release-1.9
Children:
a5a9572
Parents:
f06baef
git-author:
David Benjamin <davidben@mit.edu> (06/01/10 21:48:25)
git-committer:
David Benjamin <davidben@mit.edu> (06/01/10 21:54:19)
Message:
A fairly hacky job of porting sepbar to owl_window

We now use the new framework, but the sepbar isn't being marked dirty at
the appropriate times. It'll want to be redone later to take advantage
of the new signals.

The 'in' parameter was also dropped. It was being unused. At best it
provided a strange bug when resizing with appendtosepbar set.

Also revert the attempt at cleaning up the cursor. We still have a hack,
but using owl_window. The cursor probably needs integration with the
context stack or some such.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • owl.c

    rf6fae8d r385fda9  
    302302    /* this should be optimized to not run if the new messages won't be displayed */
    303303    owl_mainwin_redisplay(owl_global_get_mainwin(&g));
    304     sepbar(NULL);
     304    sepbar_dirty();
    305305  }
    306306  return newmsgs;
     
    464464  if (owl_global_is_needrefresh(&g)) {
    465465    /* Redraw the screen */
    466     owl_window_redraw_scheduled();
    467 
    468     /* these are here in case a relayout changes the windows */
    469     WINDOW *sepwin = owl_global_get_curs_sepwin(&g);
    470 
    471     /* move the cursor to unmanaged window if necessary */
     466
     467    /* HACK: move the cursor to unmanaged window if necessary; these should be
     468     * associated with the context or something. */
    472469    if (!owl_popwin_is_active(owl_global_get_popwin(&g))
    473470        && owl_global_get_typwin(&g)) {
    474       /* owl_function_set_cursor(typwin); */
     471      owl_window_set_cursor(owl_global_get_curs_typwin(&g));
    475472    } else {
    476       owl_function_set_cursor(sepwin);
    477     }
     473      owl_window_set_cursor(owl_global_get_curs_sepwin(&g));
     474    }
     475
     476    owl_window_redraw_scheduled();
    478477    doupdate();
    479478    owl_global_set_noneedrefresh(&g);
     
    594593    "-----------------------------------------------------------------m-m---\n"
    595594  );
    596   sepbar(NULL);
    597595
    598596  /* process the startup file */
Note: See TracChangeset for help on using the changeset viewer.