Skip to content

Commit

Permalink
Merge pull request #928 from Stefterv/kde-plasma-padding
Browse files Browse the repository at this point in the history
Set Layout in Java2D
  • Loading branch information
Stefterv authored Jan 21, 2025
2 parents b024526 + fc3d87b commit 6b8f658
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions core/src/processing/awt/PSurfaceAWT.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@
import java.util.ArrayList;
import java.util.List;

import javax.swing.JFrame;
import javax.swing.SwingUtilities;
import javax.swing.*;

import processing.core.PApplet;
import processing.core.PConstants;
Expand Down Expand Up @@ -1021,6 +1020,9 @@ public void componentResized(ComponentEvent e) {
//sketch.postWindowMoved(x - currentInsets.left, y - currentInsets.top);
sketch.postWindowMoved(x, y); // presumably user wants drawing area
}
}else{
// Solves #862 - Grey/White bar on right side of sketches
setFrameSize();
}
}

Expand Down

0 comments on commit 6b8f658

Please sign in to comment.