Skip to content

Commit

Permalink
Close #5 PR: Use primary screen instead of current screen.
Browse files Browse the repository at this point in the history
  • Loading branch information
tma02 authored and sindresorhus committed Mar 26, 2016
1 parent f0f86a2 commit acb6816
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wallpaper.m
Expand Up @@ -12,7 +12,7 @@ int main() {
@autoreleasepool {
NSWorkspace *sw = [NSWorkspace sharedWorkspace];
NSArray *args = [NSProcessInfo processInfo].arguments;
NSScreen *screen = [NSScreen mainScreen];
NSScreen *screen = [NSScreen screens].firstObject;

if (args.count > 1) {
if ([args[1] isEqualToString: @"--version"]) {
Expand Down

0 comments on commit acb6816

Please sign in to comment.