Changeset 5cc7e5e
- Timestamp:
- Jun 20, 2010, 4:47:23 PM (14 years ago)
- Branches:
- master, release-1.10, release-1.7, release-1.8, release-1.9
- Children:
- 0be3efd
- Parents:
- 1f4ea57
- git-author:
- David Benjamin <davidben@mit.edu> (06/20/10 16:41:26)
- git-committer:
- David Benjamin <davidben@mit.edu> (06/20/10 16:47:23)
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
global.c
rea7daa8 r5cc7e5e 31 31 } 32 32 33 g->lines=LINES; 34 g->cols=COLS; 35 /* We shouldn't need this if we initialize lines and cols before the first 36 * owl_window_get_screen, but to be safe, we synchronize. */ 37 owl_window_resize(owl_window_get_screen(), g->lines, g->cols); 38 33 39 g->context_stack = NULL; 34 40 owl_global_push_context(g, OWL_CTX_STARTUP, NULL, NULL, NULL); … … 37 43 g->topmsg=0; 38 44 g->markedmsgid=-1; 39 g->needrefresh=1;40 45 g->startupargs=NULL; 41 46 42 47 owl_variable_dict_setup(&(g->vars)); 43 44 g->lines=LINES;45 g->cols=COLS;46 48 47 49 g->rightshift=0; … … 306 308 } 307 309 308 /* refresh */309 310 int owl_global_is_needrefresh(const owl_global *g) {311 if (g->needrefresh==1) return(1);312 return(0);313 }314 315 void owl_global_set_needrefresh(owl_global *g) {316 g->needrefresh=1;317 }318 319 void owl_global_set_noneedrefresh(owl_global *g) {320 g->needrefresh=0;321 }322 323 310 /* variable dictionary */ 324 311 -
keys.c
r68f63a2 r5cc7e5e 338 338 owl_editwin_post_process_char(e, j); 339 339 } 340 owl_global_set_needrefresh(&g);341 340 } 342 341 -
mainwin.c
re92e2a1 r5cc7e5e 73 73 mw->curtruncated=0; 74 74 mw->lastdisplayed=-1; 75 owl_global_set_needrefresh(&g);76 75 return; 77 76 } -
owl.c
rea7daa8 r5cc7e5e 459 459 /* if a resize has been scheduled, deal with it */ 460 460 owl_global_check_resize(&g); 461 462 461 /* update the terminal if we need to */ 463 if (owl_global_is_needrefresh(&g)) { 464 /* Redraw the screen */ 465 owl_window_redraw_scheduled(); 466 doupdate(); 467 owl_global_set_noneedrefresh(&g); 468 } 462 owl_window_redraw_scheduled(); 469 463 return 0; 470 464 } -
owl.h
rea7daa8 r5cc7e5e 588 588 owl_mainpanel mainpanel; 589 589 gulong typwin_erase_id; 590 int needrefresh;591 590 int rightshift; 592 591 volatile sig_atomic_t resizepending; -
window.c
r1f4ea57 r5cc7e5e 360 360 if (w) 361 361 g_object_add_weak_pointer(G_OBJECT(w), (gpointer*) &cursor_owner); 362 owl_ global_set_needrefresh(&g);362 owl_window_dirty(owl_window_get_screen()); 363 363 } 364 364 … … 370 370 if (w) 371 371 g_object_add_weak_pointer(G_OBJECT(w), (gpointer*) &default_cursor); 372 owl_ global_set_needrefresh(&g);372 owl_window_dirty(owl_window_get_screen()); 373 373 } 374 374 … … 392 392 w = w->parent; 393 393 } 394 owl_global_set_needrefresh(&g);395 394 } 396 395 } … … 432 431 { 433 432 owl_window *cursor; 434 435 _owl_window_redraw_subtree(owl_window_get_screen()); 433 owl_window *screen = owl_window_get_screen(); 434 435 if (!screen->dirty_subtree) 436 return; 437 _owl_window_redraw_subtree(screen); 436 438 update_panels(); 437 439 cursor = _get_cursor(); … … 444 446 wnoutrefresh(cursor->win); 445 447 } 448 doupdate(); 446 449 } 447 450
Note: See TracChangeset
for help on using the changeset viewer.