lol
at 23.05-pre 49 lines 1.3 kB view raw
1This is duplicated code from Tk. 2It causes errors during build since XLowerWindow is not only a function but also "defined" in tkIntXlibDecls.h. 3 4See 5https://github.com/tcltk/tk/blob/71dcaddc69769cbd3e2c4b5edb5810f974579527/generic/tkIntXlibDecls.h#L396 6and 7https://github.com/tcltk/tk/blob/71dcaddc69769cbd3e2c4b5edb5810f974579527/generic/tkIntXlibDecls.h#L1487 8 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 11@@ -24,38 +24,3 @@ 12 { 13 return TCL_OK; 14 } 15- 16-#ifdef MAC_OSX_TK 17-#include "tkInt.h" 18-/* 19- *---------------------------------------------------------------------- 20- * 21- * XLowerWindow -- 22- * 23- * Change the stacking order of a window. 24- * 25- * Results: 26- * None. 27- * 28- * Side effects: 29- * Changes the stacking order of the specified window. 30- * 31- *---------------------------------------------------------------------- 32- */ 33- 34-int 35-XLowerWindow( 36- Display* display, /* Display. */ 37- Window window) /* Window. */ 38-{ 39- TkWindow *winPtr = *((TkWindow **) window); 40- 41- display->request++; 42- if (Tk_IsTopLevel(winPtr) && !Tk_IsEmbedded(winPtr)) { 43- TkWmRestackToplevel(winPtr, Below, NULL); 44- } else { 45- /* TODO: this should generate damage */ 46- } 47- return 0; 48-} 49-#endif