diff options
author | culler <culler> | 2018-11-24 18:05:46 (GMT) |
---|---|---|
committer | culler <culler> | 2018-11-24 18:05:46 (GMT) |
commit | 989bb343ac684fcbcce6a0cc39575db6e63559a0 (patch) | |
tree | 2975db3a8e512b8015d96ba9f624e2058af75365 /macosx/tkMacOSXWm.c | |
parent | 2db4c62686d9cffcc479f4bc70652fad961eb244 (diff) | |
download | tk-989bb343ac684fcbcce6a0cc39575db6e63559a0.zip tk-989bb343ac684fcbcce6a0cc39575db6e63559a0.tar.gz tk-989bb343ac684fcbcce6a0cc39575db6e63559a0.tar.bz2 |
Avoid mouse cursor offset if a tab bar is shown in fullscreen mode.
Diffstat (limited to 'macosx/tkMacOSXWm.c')
-rw-r--r-- | macosx/tkMacOSXWm.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/macosx/tkMacOSXWm.c b/macosx/tkMacOSXWm.c index 29cf893..f63128a 100644 --- a/macosx/tkMacOSXWm.c +++ b/macosx/tkMacOSXWm.c @@ -388,7 +388,7 @@ static void RemapWindows(TkWindow *winPtr, @implementation TKWindow: NSWindow -#if MAC_OS_X_VERSION_MAX_ALLOWED > 101100 +#if !(MAC_OS_X_VERSION_MAX_ALLOWED < 101200) - (void)toggleTabBar:(id)sender { TkWindow *winPtr = TkMacOSXGetTkWindow(self); @@ -397,7 +397,9 @@ static void RemapWindows(TkWindow *winPtr, return; } [super toggleTabBar:sender]; - TkMacOSXApplyWindowAttributes(macWin->winPtr, self); + if (([self styleMask] & NSFullScreenWindowMask) == 0) { + TkMacOSXApplyWindowAttributes(macWin->winPtr, self); + } } #endif |