Skip to content

Commit b591899

Browse files
committed
hide menu bar on OS X when FX2D is running full screen
1 parent d1bd145 commit b591899

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

core/src/processing/javafx/PSurfaceFX.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,10 @@ public void placeWindow(int[] location) {
441441

442442
@Override
443443
public void placeWindow(int[] location, int[] editorLocation) {
444+
if (sketch.sketchFullScreen()) {
445+
PApplet.hideMenuBar();
446+
}
447+
444448
//Dimension window = setFrameSize();
445449

446450
// int contentW = Math.max(sketchWidth, MIN_WINDOW_WIDTH);
@@ -504,6 +508,7 @@ public void placeWindow(int[] location, int[] editorLocation) {
504508
// http://download.java.net/jdk8/jfxdocs/javafx/stage/Stage.html#setFullScreenExitKeyCombination-javafx.scene.input.KeyCombination-
505509
public void placePresent(int stopColor) {
506510
// TODO Auto-generated method stub
511+
PApplet.hideMenuBar();
507512
}
508513

509514

core/todo.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
0247 (3.0.1)
22
X curveVertex() does not work with FX2D renderer
33
X https://github.com/processing/processing/issues/3960
4+
X hide menu bar on OS X when FX2D is running full screen
45
_ figure our size(img.width, img.height) situation
56
_ just make loadImage() work in settings, update the wiki and reference
67

0 commit comments

Comments
 (0)