Changeset f7cf6c2
- Timestamp:
- Apr 28, 2010, 2:27:58 PM (15 years ago)
- Branches:
- master, release-1.10, release-1.7, release-1.8, release-1.9
- Children:
- f92acd7
- Parents:
- 263320f
- git-author:
- David Benjamin <davidben@mit.edu> (04/28/10 13:39:29)
- git-committer:
- David Benjamin <davidben@mit.edu> (04/28/10 14:27:58)
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
global.c
r263320f rf7cf6c2 57 57 g->curmsg_vert_offset=0; 58 58 g->resizepending=0; 59 g->relayoutpending = 0; 59 60 g->direction=OWL_DIRECTION_DOWNWARDS; 60 61 g->zaway=0; … … 394 395 } 395 396 397 void owl_global_set_relayout_pending(owl_global *g) { 398 g->relayoutpending = 1; 399 } 400 396 401 const char *owl_global_get_homedir(const owl_global *g) { 397 402 if (g->homedir) return(g->homedir); … … 504 509 505 510 owl_function_debugmsg("New size is %i lines, %i cols.", g->lines, g->cols); 506 owl_global_ relayout(g);511 owl_global_set_relayout_pending(g); 507 512 } 508 513 509 514 void owl_global_relayout(owl_global *g) { 515 if (!g->relayoutpending) return; 516 g->relayoutpending = 0; 517 510 518 owl_function_debugmsg("Relayouting..."); 511 519 -
owl.c
r1cfcab7 rf7cf6c2 618 618 /* if a resize has been scheduled, deal with it */ 619 619 owl_global_resize(&g, 0, 0); 620 621 /* these are here in case a resize changes the windows */ 620 /* also handle relayouts */ 621 owl_global_relayout(&g); 622 623 /* these are here in case a relayout changes the windows */ 622 624 sepwin=owl_global_get_curs_sepwin(&g); 623 625 typwin=owl_global_get_curs_typwin(&g); -
owl.h
r7892963 rf7cf6c2 569 569 int rightshift; 570 570 volatile sig_atomic_t resizepending; 571 int relayoutpending; 571 572 int recwinlines; 572 573 char *thishost;
Note: See TracChangeset
for help on using the changeset viewer.