mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-23 12:36:51 +03:00
Set focus to next available window when gui_window is closed.
svn path=/trunk/netsurf/; revision=12824
This commit is contained in:
parent
a77b08a762
commit
8b445036f3
20
atari/gui.c
20
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,
|
||||
|
@ -116,7 +116,8 @@ struct s_gui_win_root
|
||||
float scale;
|
||||
bool throbbing;
|
||||
char * title;
|
||||
GRECT loc; /* current size of window on screen */
|
||||
/* current size of window on screen: */
|
||||
GRECT loc;
|
||||
};
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user