Browse Source

Removing getting current active screen code.

v1.4.1
Abhishek Banthia 8 years ago
parent
commit
acc3e6afde
  1. BIN
      Clocker.xcodeproj/project.xcworkspace/xcuserdata/abhishekbanthia.xcuserdatad/UserInterfaceState.xcuserstate
  2. 25
      Clocker/PanelController.m

BIN
Clocker.xcodeproj/project.xcworkspace/xcuserdata/abhishekbanthia.xcuserdatad/UserInterfaceState.xcuserstate generated

Binary file not shown.

25
Clocker/PanelController.m

@ -173,18 +173,7 @@ static PanelController *sharedPanel = nil;
- (NSRect)statusRectForWindow:(NSWindow *)window
{
/*Display on currently active monitor*/
NSScreen *currentScreen = nil;
for (NSScreen *screen in [NSScreen screens])
{
unsigned int value = [[[screen deviceDescription] objectForKey:@"NSScreenNumber"] unsignedIntValue];
if (CGDisplayIsActive(value)) {
currentScreen = screen;
}
}
NSRect screenRect = currentScreen.frame;
NSRect screenRect = self.window.frame;
NSRect statusRect = NSZeroRect;
StatusItemView *statusItemView = nil;
@ -218,18 +207,8 @@ static PanelController *sharedPanel = nil;
self.reviewView.layer.backgroundColor = (theme.integerValue == 0) ? [NSColor whiteColor].CGColor : [NSColor blackColor].CGColor;
NSWindow *panel = self.window;
NSScreen *currentScreen = nil;
for (NSScreen *screen in [NSScreen screens])
{
unsigned int value = [[[screen deviceDescription] objectForKey:@"NSScreenNumber"] unsignedIntValue];
if (CGDisplayIsActive(value)) {
currentScreen = screen;
}
}
NSRect screenRect = currentScreen.frame;
NSRect screenRect = self.window.frame;
NSRect statusRect = [self statusRectForWindow:panel];
NSRect panelRect = panel.frame;

Loading…
Cancel
Save