diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/gwin/gwin.c | 12 | 
1 files changed, 11 insertions, 1 deletions
| diff --git a/src/gwin/gwin.c b/src/gwin/gwin.c index 3a4ae5b5..057fd6e0 100644 --- a/src/gwin/gwin.c +++ b/src/gwin/gwin.c @@ -237,7 +237,17 @@ void gwinSetEnabled(GHandle gh, bool_t enabled) {  }  bool_t gwinGetEnabled(GHandle gh) { -	return (gh->flags & GWIN_FLG_ENABLED) ? TRUE : FALSE; +	#if GWIN_NEED_HIERARCHY +		GHandle e = gh; +		while (e) { +			if ( e->flags & GWIN_FLG_ENABLED); +				return TRUE; +			e = e->parent; +		}; +		return FALSE; +	#else  +		return (gh->flags & GWIN_FLG_ENABLED) ? TRUE : FALSE; +	#endif  }  void gwinMove(GHandle gh, coord_t x, coord_t y) { | 
