From 41d8ea06cf6d8f09d910bbe6727c3c9b4adf6c01 Mon Sep 17 00:00:00 2001 From: "SND\\weimingzhi_cp" Date: Sat, 19 Feb 2011 06:25:57 +0000 Subject: -(SysBeep)Some improvements to the Mac port of PeopsXGL: cursor doesn't stay hidden when app is switched out; disallow dragging window in fullscreen mode; does almost the right thing when app is deactivated; responds properly to user resolution switching. Also, some rounding errors when window resized have been eliminated. (Patch #8429) git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@63554 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- macosx/plugins/PeopsXgl/macsrc/PluginWindow.m | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'macosx/plugins/PeopsXgl/macsrc/PluginWindow.m') diff --git a/macosx/plugins/PeopsXgl/macsrc/PluginWindow.m b/macosx/plugins/PeopsXgl/macsrc/PluginWindow.m index feffedec..844cf466 100644 --- a/macosx/plugins/PeopsXgl/macsrc/PluginWindow.m +++ b/macosx/plugins/PeopsXgl/macsrc/PluginWindow.m @@ -131,6 +131,13 @@ - (void)mouseDragged:(NSEvent *)theEvent { + if ([self level] == NSScreenSaverWindowLevel) + // we don't drag when in fullscreen + // note that it is only because a quirk in the ordering of events + // and the time that NSScreenSaverWindowLevel is set + // that we'll never be dragged while in the background + return; + NSRect screenVisibleFrame = [[NSScreen mainScreen] visibleFrame]; NSRect windowFrame = [self frame]; NSPoint newOrigin = windowFrame.origin; -- cgit v1.2.3