Bug 223339 [PopupDialog] ordering of size and location menu items
bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/PopupDialog.java
listenToDeactivate = true;
					
					
					
					
					listenToParentDeactivate = !"carbon".equals(SWT.getPlatform()); 
				}
			}
		});
		if ((getShellStyle() & SWT.ON_TOP) != 0 && shell.getParent() != null) {
			parentDeactivateListener = new Listener() {
				public void handleEvent(Event event) {
					if (listenToParentDeactivate) {
						asyncClose();
					} else {
						
						listenToParentDeactivate = listenToDeactivate;
					}
				}
			};
			shell.getParent().addListener(SWT.Deactivate,
					parentDeactivateListener);
		}
		shell.addDisposeListener(new DisposeListener() {
			public void widgetDisposed(DisposeEvent event) {
				handleDispose();
			}
		});
	}
	private void asyncClose() {