summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXWm.c
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/tkMacOSXWm.c')
-rw-r--r--macosx/tkMacOSXWm.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/macosx/tkMacOSXWm.c b/macosx/tkMacOSXWm.c
index 211c3a8..ed930fe 100644
--- a/macosx/tkMacOSXWm.c
+++ b/macosx/tkMacOSXWm.c
@@ -605,15 +605,15 @@ FrontWindowAtPoint(
{
NSPoint p = NSMakePoint(x, tkMacOSXZeroScreenHeight - y);
NSArray *windows = [NSApp orderedWindows];
- TkWindow *front = NULL;
+ TkWindow *winPtr = NULL;
for (NSWindow *w in windows) {
- if (w && NSMouseInRect(p, [w frame], NO)) {
- front = TkMacOSXGetTkWindow(w);
- break;
- }
+ winPtr = TkMacOSXGetTkWindow(w);
+ if (winPtr && NSMouseInRect(p, [w frame], NO)) {
+ break;
}
- return front;
+ }
+ return winPtr;
}
/*