summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
Diffstat (limited to 'macosx')
-rw-r--r--macosx/tkMacOSXWm.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/macosx/tkMacOSXWm.c b/macosx/tkMacOSXWm.c
index d66c594..3b843b9 100644
--- a/macosx/tkMacOSXWm.c
+++ b/macosx/tkMacOSXWm.c
@@ -5401,8 +5401,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;
}
@@ -5436,7 +5439,6 @@ Tk_MacOSXGetTkWindow(
}
return (window != None ?
Tk_IdToWindow(dispPtr->display, window) : NULL);
-
}
/*