diff options
Diffstat (limited to 'macosx/tkMacOSXWm.c')
-rw-r--r-- | macosx/tkMacOSXWm.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/macosx/tkMacOSXWm.c b/macosx/tkMacOSXWm.c index fba6c63..e6d2255 100644 --- a/macosx/tkMacOSXWm.c +++ b/macosx/tkMacOSXWm.c @@ -5382,8 +5382,11 @@ Window TkMacOSXGetXWindow( void *macWinPtr) { + Window window = None; TKWindow *w = (TKWindow *)macWinPtr; - Window window = (Window) TkMacOSXGetTkWindow(w); + if ([w respondsToSelector: @selector (tkWindow)]) { + window = [w tkWindow]; + } return window ? window : None; } @@ -5417,7 +5420,6 @@ Tk_MacOSXGetTkWindow( } return (window != None ? Tk_IdToWindow(dispPtr->display, window) : NULL); - } /* |