Skip to content

Commit

Permalink
Fix fullscreen on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
tonsky committed Jan 16, 2024
1 parent 3cbb00a commit a04867c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions macos/cc/WindowMac.mm
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ static CVReturn displayLinkCallback(CVDisplayLinkRef displayLink, const CVTimeSt
return false;
}

[fNSWindow setCollectionBehavior:NSWindowCollectionBehaviorFullScreenPrimary];

fCursor = [kCursorCache objectAtIndex:0];

// create view
Expand Down
3 changes: 2 additions & 1 deletion script/build_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ def javac(sources, target, classpath = [], modulepath = [], add_modules = [], re
subprocess.check_call([
'javac',
'-encoding', 'UTF8',
'-Xlint:-options',
*opts,
'--release', release,
*(['--class-path', classpath_join(classpath + [target])] if classpath else []),
Expand All @@ -122,7 +123,7 @@ def jar(target: str, *content: List[Tuple[str, str]]) -> str:

@functools.lru_cache(maxsize=1)
def lombok():
return fetch_maven('org.projectlombok', 'lombok', '1.18.22')
return fetch_maven('org.projectlombok', 'lombok', '1.18.30')

def delombok(dirs: List[str], target: str, classpath: List[str] = [], modulepath: List[str] = []):
sources = files(*[dir + "/**/*.java" for dir in dirs])
Expand Down
2 changes: 1 addition & 1 deletion script/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def deps_compile():
(args, _) = parser.parse_known_args()

deps = [
build_utils.fetch_maven('org.projectlombok', 'lombok', '1.18.22'),
build_utils.fetch_maven('org.projectlombok', 'lombok', '1.18.30'),
build_utils.fetch_maven('org.jetbrains', 'annotations', '20.1.0')
]

Expand Down

0 comments on commit a04867c

Please sign in to comment.