wayland: use GSStandardWindowDecorationView to hit-test cursor clicks

This commit is contained in:
Riccardo Canalicchio 2021-12-29 14:29:44 +01:00
parent 9c7c878717
commit 977b375feb

View file

@ -290,7 +290,7 @@ pointer_handle_button(void *data, struct wl_pointer *pointer, uint32_t serial,
NSWindow *nswindow = GSWindowWithNumber(window->window_id); NSWindow *nswindow = GSWindowWithNumber(window->window_id);
if (nswindow != nil) if (nswindow != nil)
{ {
id<GSWindowDecorator> wd = [nswindow _windowView]; GSStandardWindowDecorationView * wd = [nswindow _windowView];
if ([wd pointInTitleBarRect:eventLocation]) if ([wd pointInTitleBarRect:eventLocation])
{ {