private void ParentActiveNotification(object o, GLib.NotifyArgs args) { if (parent.IsActive) { Hide(); parent.RemoveNotification("is-active", ParentActiveNotification); } }
private void ParentActiveNotification(object o, GLib.NotifyArgs args) { // If our parent window is ever somehow activated while we are // visible, this will ensure we merge back into the parent if (parent.IsActive) { parent.GdkWindow.SkipPagerHint = false; parent.GdkWindow.SkipTaskbarHint = false; parent.RemoveNotification("is-active", ParentActiveNotification); } else { parent.GdkWindow.SkipPagerHint = true; parent.GdkWindow.SkipTaskbarHint = true; } }