Attachment "no-tkOwnsCursor.diff" to
ticket [08eb057d]
added by
chrstphrchvz
2020-07-16 19:59:31.
diff --git macosx/tkMacOSXCursor.c macosx/tkMacOSXCursor.c
index 33416f885..177e2920f 100644
--- macosx/tkMacOSXCursor.c
+++ macosx/tkMacOSXCursor.c
@@ -187,12 +187,6 @@ static const struct CursorName cursorNames[] = {
static TkMacOSXCursor *gCurrentCursor = NULL;
/* A pointer to the current cursor. */
-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
- * app's window, and the cursor is out of the
- * Tk window, we will not attempt to adjust
- * the cursor. */
/*
* Declarations of procedures local to this file
@@ -540,10 +534,6 @@ TkpSetCursor(
{
int cursorChanged = 1;
- if (!gTkOwnsCursor) {
- return;
- }
-
if (cursor == None) {
/*
* This is a little tricky. We can't really tell whether
@@ -571,13 +561,13 @@ TkpSetCursor(
*
* Tk_MacOSXTkOwnsCursor --
*
- * Sets whether Tk has the right to adjust the cursor.
+ * No longer used.
*
* Results:
* None.
*
* Side effects:
- * May keep Tk from changing the cursor.
+ * None.
*
*----------------------------------------------------------------------
*/
@@ -586,7 +576,7 @@ void
Tk_MacOSXTkOwnsCursor(
int tkOwnsIt)
{
- gTkOwnsCursor = tkOwnsIt;
+ // Function is unused
}
/*