summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXWm.h
diff options
context:
space:
mode:
authorKevin Walzer <kw@codebykevin.com>2017-04-20 01:53:22 (GMT)
committerKevin Walzer <kw@codebykevin.com>2017-04-20 01:53:22 (GMT)
commit77e0c5e9fb76f2aa4dd4f3d9545f3bf22b77cdc4 (patch)
tree341a50248678fe5a8deacd45be3c2bd346216c17 /macosx/tkMacOSXWm.h
parent702533cc8cafc0703c2928bf0ba4747ae35f3047 (diff)
downloadtk-77e0c5e9fb76f2aa4dd4f3d9545f3bf22b77cdc4.zip
tk-77e0c5e9fb76f2aa4dd4f3d9545f3bf22b77cdc4.tar.gz
tk-77e0c5e9fb76f2aa4dd4f3d9545f3bf22b77cdc4.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.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/macosx/tkMacOSXWm.h b/macosx/tkMacOSXWm.h
index 0a128ef..8256b54 100644
--- a/macosx/tkMacOSXWm.h
+++ b/macosx/tkMacOSXWm.h
@@ -11,7 +11,7 @@
*/
#ifndef _TKMACWM
-#define _TKMACWM
+#define _TKMACWM
#include "tkMacOSXInt.h"
#include "tkMenu.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