1 This is duplicated code from Tk.
2 It causes errors during build since XLowerWindow is not only a function but also "defined" in tkIntXlibDecls.h.
5 https://github.com/tcltk/tk/blob/71dcaddc69769cbd3e2c4b5edb5810f974579527/generic/tkIntXlibDecls.h#L396
7 https://github.com/tcltk/tk/blob/71dcaddc69769cbd3e2c4b5edb5810f974579527/generic/tkIntXlibDecls.h#L1487
9 --- a/unix/tixUnixWm.c 2005-03-25 13:15:53.000000000 -0700
10 +++ b/unix/tixUnixWm.c 2021-03-20 07:31:52.000000000 -0700
19 - *----------------------------------------------------------------------
23 - * Change the stacking order of a window.
29 - * Changes the stacking order of the specified window.
31 - *----------------------------------------------------------------------
36 - Display* display, /* Display. */
37 - Window window) /* Window. */
39 - TkWindow *winPtr = *((TkWindow **) window);
42 - if (Tk_IsTopLevel(winPtr) && !Tk_IsEmbedded(winPtr)) {
43 - TkWmRestackToplevel(winPtr, Below, NULL);
45 - /* TODO: this should generate damage */