summaryrefslogtreecommitdiff
path: root/atari/gui.c
diff options
context:
space:
mode:
Diffstat (limited to 'atari/gui.c')
-rwxr-xr-xatari/gui.c20
1 files changed, 14 insertions, 6 deletions
diff --git a/atari/gui.c b/atari/gui.c
index 8b8c98e2b..221801645 100755
--- a/atari/gui.c
+++ b/atari/gui.c
@@ -186,7 +186,8 @@ void gui_poll(bool active)
}
if( evnt.timer != 0 && !active ){
/* this suits for stuff with lower priority */
- hotlist_redraw();
+ //hotlist_redraw();
+ atari_treeview_redraw( hl.tv );
}
}
@@ -256,12 +257,19 @@ void gui_window_destroy(struct gui_window *w)
}
if( w->next != NULL ) {
w->next->prev = w->prev;
- }
- if( input_window == w ) {
- input_window = window_list;
- }
+ }
free(w);
- w = NULL;
+ w = NULL;
+
+ w = window_list;
+ int dummy=0;
+ while( w != NULL ) {
+ if( w->root ) {
+ input_window = w;
+ break;
+ }
+ w = w->next;
+ }
}
void gui_window_get_dimensions(struct gui_window *w, int *width, int *height,