diff options
Diffstat (limited to 'atari/misc.c')
-rwxr-xr-x | atari/misc.c | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/atari/misc.c b/atari/misc.c index 575e96491..22f820eb6 100755 --- a/atari/misc.c +++ b/atari/misc.c @@ -121,8 +121,8 @@ struct gui_window * find_guiwin_by_aes_handle(short handle){ } while(gw != NULL) {
- if( gw->root->handle != NULL - && gw->root->handle->handle == handle ) {
+ if( gw->root->win != NULL + && guiwin_get_handle(gw->root->win) == handle ) {
return(gw);
}
else
@@ -133,21 +133,6 @@ struct gui_window * find_guiwin_by_aes_handle(short handle){ } -struct gui_window * find_cmp_window( COMPONENT * c )
-{
- struct gui_window * gw;
- gw = window_list;
- while( gw != NULL ) {
- assert( gw->browser != NULL );
- if( gw->browser->comp == c ) {
- return( gw );
- }
- else
- gw = gw->next;
- }
- return( NULL );
-} - static int scan_process_list(scan_process_callback cb, void *data) { int pid, count = 0; |