Skip to content
This repository has been archived by the owner on Mar 5, 2023. It is now read-only.

fix multiple monitor issue #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Popup/PanelController.m
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ - (void)runSearch

- (NSRect)statusRectForWindow:(NSWindow *)window
{
NSRect screenRect = [[[NSScreen screens] objectAtIndex:0] frame];
NSRect screenRect = [[NSScreen mainScreen] frame];
NSRect statusRect = NSZeroRect;

StatusItemView *statusItemView = nil;
Expand All @@ -187,7 +187,7 @@ - (void)openPanel
{
NSWindow *panel = [self window];

NSRect screenRect = [[[NSScreen screens] objectAtIndex:0] frame];
NSRect screenRect = [[NSScreen mainScreen] frame];
NSRect statusRect = [self statusRectForWindow:panel];

NSRect panelRect = [panel frame];
Expand Down