File tree Expand file tree Collapse file tree 1 file changed +9
-8
lines changed
app/src/processing/app/platform Expand file tree Collapse file tree 1 file changed +9
-8
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments