Skip to content

Commit c0b7e08

Browse files
committed
clean up indents and formatting
1 parent a0f2c9f commit c0b7e08

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

app/src/processing/app/platform/LinuxPlatform.java

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,18 +48,19 @@ public void init(Base base) {
4848
"placement. For more background, please read the wiki:\n" +
4949
"http://wiki.processing.org/w/Supported_Platforms#Linux", null);
5050
}
51-
//Set x11 WM_CLASS property which is
52-
//used as the application name by Gnome3
53-
//and other window managers
54-
try{
51+
52+
// Set x11 WM_CLASS property which is used as the application
53+
// name by Gnome3 and other window managers.
54+
// https://github.com/processing/processing/issues/2534
55+
try {
5556
Toolkit xToolkit = Toolkit.getDefaultToolkit();
5657
java.lang.reflect.Field awtAppClassNameField =
57-
xToolkit.getClass().getDeclaredField("awtAppClassName");
58+
xToolkit.getClass().getDeclaredField("awtAppClassName");
5859
awtAppClassNameField.setAccessible(true);
5960
awtAppClassNameField.set(xToolkit, "Processing");
60-
}
61-
catch(Exception e){
62-
//In case the implementation details change...
61+
62+
} catch(Exception e) {
63+
// In case the implementation details change
6364
e.printStackTrace();
6465
}
6566
}

0 commit comments

Comments
 (0)