summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXWm.h
diff options
context:
space:
mode:
authorKevin Walzer <kw@codebykevin.com>2017-04-20 01:47:21 (GMT)
committerKevin Walzer <kw@codebykevin.com>2017-04-20 01:47:21 (GMT)
commit63b6554668963fa5a4b94cd64931e556ad154fcb (patch)
tree5d519469dc3390324b22ee9e4e7d6950d46e4955 /macosx/tkMacOSXWm.h
parent985621e3f1a0ac065a03f17f846d6004dfc2e827 (diff)
downloadtk-63b6554668963fa5a4b94cd64931e556ad154fcb.zip
tk-63b6554668963fa5a4b94cd64931e556ad154fcb.tar.gz
tk-63b6554668963fa5a4b94cd64931e556ad154fcb.tar.bz2
1. Fix for segfault with latest version of Xcode on macOS 10.12; thanks to Bill Joye for patch. 2. Improvements to HITheme scroller on macOS: smoother scrolling, and scrollbar now correctly highlights when being pressed and during enter/leave events. Thanks to Tortsen Reincke for bug report (061bf93176a5684a4a855f8177b290c59dd39bf2).
Diffstat (limited to 'macosx/tkMacOSXWm.h')
-rw-r--r--macosx/tkMacOSXWm.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/macosx/tkMacOSXWm.h b/macosx/tkMacOSXWm.h
index 0a128ef..e904f50 100644
--- a/macosx/tkMacOSXWm.h
+++ b/macosx/tkMacOSXWm.h
@@ -29,15 +29,13 @@ typedef struct ProtocolHandler {
* same top-level window, or NULL for end of
* list. */
Tcl_Interp *interp; /* Interpreter in which to invoke command. */
- char command[]; /* Tcl command to invoke when a client message
+ char* command; /* Tcl command to invoke when a client message
* for this protocol arrives. The actual size
* of the structure varies to accommodate the
* needs of the actual command. THIS MUST BE
* THE LAST FIELD OF THE STRUCTURE. */
} ProtocolHandler;
-#define HANDLER_SIZE(cmdLength) \
-((unsigned) (sizeof(ProtocolHandler) + cmdLength + 1))
/*
* A data structure of the following type holds window-manager-related