]> git.proxmox.com Git - mirror_qemu.git/blobdiff - ui/cocoa.m
ui/cocoa: Clean up global variable shadowing
[mirror_qemu.git] / ui / cocoa.m
index 145f42d19054cc0286f654592707218f2f01a8d1..d95276013c7f850894c9525a65e23ea5f60602e9 100644 (file)
@@ -343,9 +343,9 @@ QemuCocoaView *cocoaView;
 
 static CGEventRef handleTapEvent(CGEventTapProxy proxy, CGEventType type, CGEventRef cgEvent, void *userInfo)
 {
-    QemuCocoaView *cocoaView = userInfo;
+    QemuCocoaView *view = userInfo;
     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");
         return NULL;
     }