summaryrefslogtreecommitdiffstats
path: root/generic
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-08-06 16:16:16 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-08-06 16:16:16 (GMT)
commitc24b589a6b793f5112cd11f613af9aa7ae10b55f (patch)
tree1dfc65f9ac4dc2c457dc27fc0a96f3aafcf443d4 /generic
parentc56bbfcace9ceaac2fa36e32d7c9349e7be3e3b5 (diff)
downloadtk-c24b589a6b793f5112cd11f613af9aa7ae10b55f.zip
tk-c24b589a6b793f5112cd11f613af9aa7ae10b55f.tar.gz
tk-c24b589a6b793f5112cd11f613af9aa7ae10b55f.tar.bz2
Add stub entry for XLowerWindow() on MacOS (no idea why this was commented out, windows and X11 already had this)
More use of TCL_UNUSED()
Diffstat (limited to 'generic')
-rw-r--r--generic/tkInt.decls3
-rw-r--r--generic/tkIntXlibDecls.h8
-rw-r--r--generic/tkStubInit.c2
3 files changed, 9 insertions, 4 deletions
diff --git a/generic/tkInt.decls b/generic/tkInt.decls
index f6e7ea9..37557f5 100644
--- a/generic/tkInt.decls
+++ b/generic/tkInt.decls
@@ -1844,6 +1844,9 @@ declare 112 aqua {
declare 114 aqua {
VisualID XVisualIDFromVisual(Visual *visual)
}
+declare 129 aqua {
+ int XLowerWindow(Display *d, Window w)
+}
declare 137 aqua {
int XPutImage(Display *d, Drawable dr, GC gc, XImage *im,
int sx, int sy, int dx, int dy,
diff --git a/generic/tkIntXlibDecls.h b/generic/tkIntXlibDecls.h
index f1b0018..7626d9d 100644
--- a/generic/tkIntXlibDecls.h
+++ b/generic/tkIntXlibDecls.h
@@ -743,7 +743,8 @@ EXTERN VisualID XVisualIDFromVisual(Visual *visual);
/* Slot 126 is reserved */
/* Slot 127 is reserved */
/* Slot 128 is reserved */
-/* Slot 129 is reserved */
+/* 129 */
+EXTERN int XLowerWindow(Display *d, Window w);
/* Slot 130 is reserved */
/* Slot 131 is reserved */
/* Slot 132 is reserved */
@@ -1074,7 +1075,7 @@ typedef struct TkIntXlibStubs {
void (*reserved126)(void);
void (*reserved127)(void);
void (*reserved128)(void);
- void (*reserved129)(void);
+ int (*xLowerWindow) (Display *d, Window w); /* 129 */
void (*reserved130)(void);
void (*reserved131)(void);
void (*reserved132)(void);
@@ -1636,7 +1637,8 @@ extern const TkIntXlibStubs *tkIntXlibStubsPtr;
/* Slot 126 is reserved */
/* Slot 127 is reserved */
/* Slot 128 is reserved */
-/* Slot 129 is reserved */
+#define XLowerWindow \
+ (tkIntXlibStubsPtr->xLowerWindow) /* 129 */
/* Slot 130 is reserved */
/* Slot 131 is reserved */
/* Slot 132 is reserved */
diff --git a/generic/tkStubInit.c b/generic/tkStubInit.c
index 4abc637..836f1d1 100644
--- a/generic/tkStubInit.c
+++ b/generic/tkStubInit.c
@@ -962,7 +962,7 @@ static const TkIntXlibStubs tkIntXlibStubs = {
0, /* 126 */
0, /* 127 */
0, /* 128 */
- 0, /* 129 */
+ XLowerWindow, /* 129 */
0, /* 130 */
0, /* 131 */
0, /* 132 */