Attachment "no-resizeOverride.diff" to
ticket [08eb057d]
added by
chrstphrchvz
2020-07-16 15:13:05.
diff --git generic/tkInt.decls generic/tkInt.decls
index f6e7ea91b..141f6e6a0 100644
--- generic/tkInt.decls
+++ generic/tkInt.decls
@@ -913,7 +913,7 @@ declare 10 aqua {
int TkMacOSXDispatchMenuEvent(int menuID, int index)
}
declare 11 aqua {
- void TkMacOSXInstallCursor(int resizeOverride)
+ void TkMacOSXInstallCursor(int unused)
}
declare 12 aqua {
void TkMacOSXHandleTearoffMenu(void)
diff --git generic/tkIntPlatDecls.h generic/tkIntPlatDecls.h
index 8221d7a11..3bf644117 100644
--- generic/tkIntPlatDecls.h
+++ generic/tkIntPlatDecls.h
@@ -171,7 +171,7 @@ EXTERN void TkMacOSXClearMenubarActive(void);
/* 10 */
EXTERN int TkMacOSXDispatchMenuEvent(int menuID, int index);
/* 11 */
-EXTERN void TkMacOSXInstallCursor(int resizeOverride);
+EXTERN void TkMacOSXInstallCursor(int unused);
/* 12 */
EXTERN void TkMacOSXHandleTearoffMenu(void);
/* Slot 13 is reserved */
@@ -405,7 +405,7 @@ typedef struct TkIntPlatStubs {
unsigned int (*tkMacOSXButtonKeyState) (void); /* 8 */
void (*tkMacOSXClearMenubarActive) (void); /* 9 */
int (*tkMacOSXDispatchMenuEvent) (int menuID, int index); /* 10 */
- void (*tkMacOSXInstallCursor) (int resizeOverride); /* 11 */
+ void (*tkMacOSXInstallCursor) (int unused); /* 11 */
void (*tkMacOSXHandleTearoffMenu) (void); /* 12 */
void (*reserved13)(void);
int (*tkMacOSXDoHLEvent) (void *theEvent); /* 14 */
diff --git macosx/tkMacOSXCursor.c macosx/tkMacOSXCursor.c
index 894a44d77..33416f885 100644
--- macosx/tkMacOSXCursor.c
+++ macosx/tkMacOSXCursor.c
@@ -187,9 +187,6 @@ static const struct CursorName cursorNames[] = {
static TkMacOSXCursor *gCurrentCursor = NULL;
/* A pointer to the current cursor. */
-static int gResizeOverride = false;
- /* A boolean indicating whether we should use
- * the resize cursor during installations. */
static int gTkOwnsCursor = true;/* A boolean indicating whether Tk owns the
* cursor. If not (for instance, in the case
* where a Tk window is embedded in another
@@ -489,15 +486,13 @@ TkpFreeCursor(
void
TkMacOSXInstallCursor(
- int resizeOverride)
+ int unused)
{
TkMacOSXCursor *macCursorPtr = gCurrentCursor;
static int cursorHidden = 0;
int cursorNone = 0;
- gResizeOverride = resizeOverride;
-
- if (resizeOverride || !macCursorPtr) {
+ if (!macCursorPtr) {
[[NSCursor arrowCursor] set];
} else {
switch (macCursorPtr->type) {
@@ -567,7 +562,7 @@ TkpSetCursor(
}
if (Tk_MacOSXIsAppInFront() && cursorChanged) {
- TkMacOSXInstallCursor(gResizeOverride);
+ TkMacOSXInstallCursor(0);
}
}