cocoa: Ignore both clicks and motion on tooltip windows
(cherry picked from commit ad2584813f)
This commit is contained in:
1 parent
4aa4e6a18e
commit
15db51d7ff
1 file changed
+1
@@ -2210,6 +2210,7 @@ static bool SetupWindowData(SDL_VideoDevice *_this, SDL_Window *window, NSWindow
|
||||
} else {
|
||||
if (window->flags & SDL_WINDOW_TOOLTIP) {
|
||||
[nswindow setIgnoresMouseEvents:YES];
|
||||
[nswindow setAcceptsMouseMovedEvents:NO];
|
||||
} else if (window->flags & SDL_WINDOW_POPUP_MENU) {
|
||||
Cocoa_SetKeyboardFocus(window, window->parent == SDL_GetKeyboardFocus());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user