diff options
author | culler <culler> | 2024-06-25 14:14:04 (GMT) |
---|---|---|
committer | culler <culler> | 2024-06-25 14:14:04 (GMT) |
commit | 478c22d47c125e789a22ef8cf05c3117288a0cdd (patch) | |
tree | 982fb1b90a0cb1abc1d97542479a43a829430b77 /macosx | |
parent | f8087a27cf185e1321edaf4f8a612a71b99a84e2 (diff) | |
download | tk-478c22d47c125e789a22ef8cf05c3117288a0cdd.zip tk-478c22d47c125e789a22ef8cf05c3117288a0cdd.tar.gz tk-478c22d47c125e789a22ef8cf05c3117288a0cdd.tar.bz2 |
Work on unixWm-50.9 and -51.7.
Diffstat (limited to 'macosx')
-rw-r--r-- | macosx/tkMacOSXWm.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/macosx/tkMacOSXWm.c b/macosx/tkMacOSXWm.c index 115060d..04a3ce5 100644 --- a/macosx/tkMacOSXWm.c +++ b/macosx/tkMacOSXWm.c @@ -5665,6 +5665,15 @@ Tk_MoveToplevelWindow( * *---------------------------------------------------------------------- */ +#define PRINT_STACK \ + for (NSWindow *w in [NSApp orderedWindows]) { \ + TkWindow *winPtr2 = TkMacOSXGetTkWindow(w); \ + if (winPtr2) { \ + fprintf(stderr, "%s ", Tk_PathName(winPtr2)); \ + } \ + } \ + fprintf(stderr, "\n"); \ + fflush(stderr) void TkWmRestackToplevel( @@ -5722,8 +5731,14 @@ TkWmRestackToplevel( * Just let the Mac window manager deal with all the subtleties of keeping * track of off-screen windows, etc. */ - +#if 0 + fprintf(stderr, "window order: "); PRINT_STACK; +#endif [macWindow orderWindow:macAboveBelow relativeTo:otherNumber]; +#if 0 + fprintf(stderr, "new window order: "); PRINT_STACK; +#endif +#undef PRINT_STACK } /* |