ui/cocoa: Clean up global variable shadowing
Fix: ui/cocoa.m:346:20: error: declaration shadows a variable in the global scope [-Werror,-Wshadow] QemuCocoaView *cocoaView = userInfo; ^ ui/cocoa.m:342:16: note: previous declaration is here QemuCocoaView *cocoaView; ^ Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-ID: <20231004120019.93101-11-philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Akihiko Odaki <akihiko.odaki@daynix.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
parent
afb81fe854
commit
21eb752ff5
@ -343,9 +343,9 @@ QemuCocoaView *cocoaView;
|
|||||||
|
|
||||||
static CGEventRef handleTapEvent(CGEventTapProxy proxy, CGEventType type, CGEventRef cgEvent, void *userInfo)
|
static CGEventRef handleTapEvent(CGEventTapProxy proxy, CGEventType type, CGEventRef cgEvent, void *userInfo)
|
||||||
{
|
{
|
||||||
QemuCocoaView *cocoaView = userInfo;
|
QemuCocoaView *view = userInfo;
|
||||||
NSEvent *event = [NSEvent eventWithCGEvent:cgEvent];
|
NSEvent *event = [NSEvent eventWithCGEvent:cgEvent];
|
||||||
if ([cocoaView isMouseGrabbed] && [cocoaView handleEvent:event]) {
|
if ([view isMouseGrabbed] && [view handleEvent:event]) {
|
||||||
COCOA_DEBUG("Global events tap: qemu handled the event, capturing!\n");
|
COCOA_DEBUG("Global events tap: qemu handled the event, capturing!\n");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user