dtwm: cov 175166, check for pointer
authorPeter Howkins <flibble@users.sf.net>
Wed, 4 Apr 2018 15:33:45 +0000 (16:33 +0100)
committerPeter Howkins <flibble@users.sf.net>
Wed, 4 Apr 2018 15:33:45 +0000 (16:33 +0100)
cde/programs/dtwm/WmFP.c

index 5bd3690c513c6bb469b2a8f25f92c0b009342cbd..c5bd72c6cc9bc90dd361d664d416912c04280f74 100644 (file)
@@ -329,7 +329,7 @@ EmbeddedClientRegister (ControlData * control_data,
                {
                   embedded_client->pCD->pECD = (void *) embedded_client;
 
-                  if (XtParent(control_data->icon) == 
+                  if (control_data->icon && XtParent(control_data->icon) == 
                       XtParent(embedded_client->wControl) &&
                       remove_y < embedded_client->y)
                   {