Commit 43652cfa authored by Jonathan Wilkes's avatar Jonathan Wilkes
Browse files

use new nw.js API for toggling fullscreen

parent 680a6e91
......@@ -1169,9 +1169,7 @@ function nw_create_patch_window_menus(gui, w, name) {
minit(m.view.fullscreen, {
click: function() {
var win = gui.Window.get();
var fullscreen = win.isFullscreen;
win.isFullscreen = !fullscreen;
pdgui.post("fullscreen is " + fullscreen);
win.toggleFullscreen();
}
});
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment