mirror of https://github.com/libsdl-org/SDL.git
cocoa: Ignore both clicks and motion on tooltip windows
This commit is contained in:
parent
fe245c6e0d
commit
ad2584813f
|
|
@ -2211,6 +2211,7 @@ static bool SetupWindowData(SDL_VideoDevice *_this, SDL_Window *window, NSWindow
|
||||||
} else {
|
} else {
|
||||||
if (window->flags & SDL_WINDOW_TOOLTIP) {
|
if (window->flags & SDL_WINDOW_TOOLTIP) {
|
||||||
[nswindow setIgnoresMouseEvents:YES];
|
[nswindow setIgnoresMouseEvents:YES];
|
||||||
|
[nswindow setAcceptsMouseMovedEvents:NO];
|
||||||
} else if (window->flags & SDL_WINDOW_POPUP_MENU) {
|
} else if (window->flags & SDL_WINDOW_POPUP_MENU) {
|
||||||
Cocoa_SetKeyboardFocus(window, window->parent == SDL_GetKeyboardFocus());
|
Cocoa_SetKeyboardFocus(window, window->parent == SDL_GetKeyboardFocus());
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue