Skip to content

Commit

Permalink
enable browser controlled fullscreen in MacOS (#517)
Browse files Browse the repository at this point in the history
Fixes #515
  • Loading branch information
raff committed Jan 15, 2021
1 parent bc486a3 commit 0f8224c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions webview.h
Original file line number Diff line number Diff line change
Expand Up @@ -628,6 +628,10 @@ class cocoa_wkwebview_engine {
objc_msgSend("NSNumber"_cls, "numberWithBool:"_sel, 1),
"developerExtrasEnabled"_str);
}
objc_msgSend(objc_msgSend(config, "preferences"_sel),
"setValue:forKey:"_sel,
objc_msgSend("NSNumber"_cls, "numberWithBool:"_sel, 1),
"fullScreenEnabled"_str);
objc_msgSend(objc_msgSend(config, "preferences"_sel),
"setValue:forKey:"_sel,
objc_msgSend("NSNumber"_cls, "numberWithBool:"_sel, 1),
Expand Down

0 comments on commit 0f8224c

Please sign in to comment.