v0.4.2: added in a safety check for windows

This commit is contained in:
Evan Debenham 2016-08-30 16:37:55 -04:00
parent 3d2fd64a53
commit 704b3b6fc8

View File

@ -60,7 +60,7 @@ public class Window extends Group implements Signal.Listener<Key> {
blocker = new TouchArea( 0, 0, PixelScene.uiCamera.width, PixelScene.uiCamera.height ) {
@Override
protected void onClick( Touch touch ) {
if (!Window.this.chrome.overlapsScreenPoint(
if (Window.this.parent != null && !Window.this.chrome.overlapsScreenPoint(
(int)touch.current.x,
(int)touch.current.y )) {