cocoa.m (7754c97179a40c563935b7610aa3146291abefcc) | cocoa.m (0337e4123e62721bd0bcb4d5645fee2a31e8906d) |
---|---|
1/* 2 * QEMU Cocoa CG display driver 3 * 4 * Copyright (c) 2008 Mike Kronenberg 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 7 * of this software and associated documentation files (the "Software"), to deal 8 * in the Software without restriction, including without limitation the rights --- 1987 unchanged lines hidden (view full) --- 1996 1997static void cocoa_refresh(DisplayChangeListener *dcl) 1998{ 1999 NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; 2000 2001 COCOA_DEBUG("qemu_cocoa: cocoa_refresh\n"); 2002 graphic_hw_update(NULL); 2003 | 1/* 2 * QEMU Cocoa CG display driver 3 * 4 * Copyright (c) 2008 Mike Kronenberg 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a copy 7 * of this software and associated documentation files (the "Software"), to deal 8 * in the Software without restriction, including without limitation the rights --- 1987 unchanged lines hidden (view full) --- 1996 1997static void cocoa_refresh(DisplayChangeListener *dcl) 1998{ 1999 NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; 2000 2001 COCOA_DEBUG("qemu_cocoa: cocoa_refresh\n"); 2002 graphic_hw_update(NULL); 2003 |
2004 if (qemu_input_is_absolute()) { | 2004 if (qemu_input_is_absolute(dcl->con)) { |
2005 dispatch_async(dispatch_get_main_queue(), ^{ 2006 if (![cocoaView isAbsoluteEnabled]) { 2007 if ([cocoaView isMouseGrabbed]) { 2008 [cocoaView ungrabMouse]; 2009 } 2010 } 2011 [cocoaView setAbsoluteEnabled:YES]; 2012 }); --- 88 unchanged lines hidden --- | 2005 dispatch_async(dispatch_get_main_queue(), ^{ 2006 if (![cocoaView isAbsoluteEnabled]) { 2007 if ([cocoaView isMouseGrabbed]) { 2008 [cocoaView ungrabMouse]; 2009 } 2010 } 2011 [cocoaView setAbsoluteEnabled:YES]; 2012 }); --- 88 unchanged lines hidden --- |