From d136fdc0ab450fdc8b3a8276339b861e6fb48c6f Mon Sep 17 00:00:00 2001 From: dynaflash Date: Thu, 5 Mar 2009 23:07:19 +0000 Subject: MacGui: Fix picture settings panel so that it stays on top when open like a true hud inspector. - Add "Hide On Deactivate" property to the xib so that if another app is in focus the panel properly hides. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2228 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- macosx/English.lproj/PictureSettings.xib | 4 ++-- macosx/PictureController.mm | 9 +++++++-- 2 files changed, 9 insertions(+), 4 deletions(-) (limited to 'macosx') diff --git a/macosx/English.lproj/PictureSettings.xib b/macosx/English.lproj/PictureSettings.xib index fe8dcec82..90a8a15d9 100644 --- a/macosx/English.lproj/PictureSettings.xib +++ b/macosx/English.lproj/PictureSettings.xib @@ -8,7 +8,7 @@ 353.00 YES - + YES @@ -38,7 +38,7 @@ 8215 2 {{1211, 290}, {311, 447}} - 1886913536 + -260570112 Picture Settings NSPanel diff --git a/macosx/PictureController.mm b/macosx/PictureController.mm index 702816c8f..3c078191b 100644 --- a/macosx/PictureController.mm +++ b/macosx/PictureController.mm @@ -84,8 +84,13 @@ - (void) setToWindowedMode { - /* Set the window back to regular level */ - [[self window] setLevel:NSNormalWindowLevel]; + /* Set the window back to Floating Window mode + * This will put the window always on top, but + * since we have Hide on Deactivate set in our + * xib, if other apps are put in focus we will + * hide properly to stay out of the way + */ + [[self window] setLevel:NSFloatingWindowLevel]; } - (void)setHBController: (HBController *)controller -- cgit v1.2.3