Changeset 13963 in josm
- Timestamp:
- 2018-06-21T16:06:43+02:00 (6 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/MainApplication.java
r13960 r13963 1030 1030 // splash can be null sometimes on Linux, in this case try to load JOSM silently 1031 1031 final SplashProgressMonitor monitor = splash != null ? splash.getProgressMonitor() : new SplashProgressMonitor(null, e -> { 1032 Logging.debug(e.toString()); 1032 if (e != null) { 1033 Logging.debug(e.toString()); 1034 } 1033 1035 }); 1034 1036 monitor.beginTask(tr("Initializing")); -
trunk/src/org/openstreetmap/josm/gui/util/WindowGeometry.java
r12846 r13963 343 343 344 344 // Ensure window does not hide taskbar 345 346 Rectangle maxbounds = GraphicsEnvironment.getLocalGraphicsEnvironment().getMaximumWindowBounds(); 347 348 if (!isBugInMaximumWindowBounds(maxbounds)) { 349 deltax = size.width - maxbounds.width; 350 if (deltax > 0) { 351 size.width -= deltax; 345 try { 346 Rectangle maxbounds = GraphicsEnvironment.getLocalGraphicsEnvironment().getMaximumWindowBounds(); 347 348 if (!isBugInMaximumWindowBounds(maxbounds)) { 349 deltax = size.width - maxbounds.width; 350 if (deltax > 0) { 351 size.width -= deltax; 352 } 353 354 deltay = size.height - maxbounds.height; 355 if (deltay > 0) { 356 size.height -= deltay; 357 } 352 358 } 353 354 deltay = size.height - maxbounds.height; 355 if (deltay > 0) { 356 size.height -= deltay; 357 } 359 } catch (IllegalArgumentException e) { 360 // See #16410: IllegalArgumentException: "Window must not be zero" on Linux/X11 361 Logging.error(e); 358 362 } 359 363 window.setLocation(p);
Note:
See TracChangeset
for help on using the changeset viewer.