diff options
| author | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2011-02-19 06:25:57 +0000 |
|---|---|---|
| committer | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2011-02-19 06:25:57 +0000 |
| commit | 41d8ea06cf6d8f09d910bbe6727c3c9b4adf6c01 (patch) | |
| tree | a68f41f3e57cad1f2642892be4667ba0cdb6c2f4 /macosx/plugins/PeopsXgl/macsrc/PluginWindow.m | |
| parent | 7e251ead609170f2fde48d2805983d5aee0c45c5 (diff) | |
| download | pcsxr-41d8ea06cf6d8f09d910bbe6727c3c9b4adf6c01.tar.gz | |
-(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
Diffstat (limited to 'macosx/plugins/PeopsXgl/macsrc/PluginWindow.m')
| -rw-r--r-- | macosx/plugins/PeopsXgl/macsrc/PluginWindow.m | 7 |
1 files changed, 7 insertions, 0 deletions
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; |
