Changeset 84a4aca
- Timestamp:
- Jun 1, 2010, 12:12:39 PM (15 years ago)
- Branches:
- master, release-1.10, release-1.7, release-1.8, release-1.9
- Children:
- f6fae8d
- Parents:
- 908de44
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
window.c
ra57f87a r84a4aca 44 44 static void _owl_window_redraw_cleanup(owl_window *w, WINDOW *win); 45 45 46 static owl_window *cursor_owner; 47 46 48 G_DEFINE_TYPE (OwlWindow, owl_window, G_TYPE_OBJECT) 47 49 … … 327 329 /** Painting and book-keeping **/ 328 330 331 void owl_window_set_cursor(owl_window *w) 332 { 333 cursor_owner = w; 334 g_object_add_weak_pointer(G_OBJECT(w), (gpointer*) &cursor_owner); 335 } 336 329 337 void owl_window_dirty(owl_window *w) 330 338 { … … 374 382 _owl_window_redraw_subtree(owl_window_get_screen()); 375 383 update_panels(); 384 if (cursor_owner && cursor_owner->win) 385 wnoutrefresh(cursor_owner->win); 376 386 } 377 387 -
window.h
r7a6e6c7 r84a4aca 43 43 int owl_window_is_toplevel(owl_window *w); 44 44 45 void owl_window_set_cursor(owl_window *w); 46 45 47 void owl_window_dirty(owl_window *w); 46 48 void owl_window_dirty_children(owl_window *w);
Note: See TracChangeset
for help on using the changeset viewer.