summaryrefslogtreecommitdiff
path: root/macosx/plugins/PeopsXgl/macsrc/PluginWindow.m
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/plugins/PeopsXgl/macsrc/PluginWindow.m')
-rw-r--r--macosx/plugins/PeopsXgl/macsrc/PluginWindow.m7
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;