mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-07 23:43:37 +00:00
workaround tiger view hookup ordering changes with user defaults pref to
go back to panther behavior (bug 291355)
This commit is contained in:
parent
0a16fc5396
commit
17cc947322
@ -203,6 +203,10 @@ const int kReuseWindowOnAE = 2;
|
||||
// initialize prefs if we haven't already.
|
||||
PreferenceManager *pm = [PreferenceManager sharedInstance];
|
||||
|
||||
// To work around a bug on Tiger where the view hookup order has been changed from postfix to prefix
|
||||
// order, we need to set a user default to return to the old behavior.
|
||||
[[NSUserDefaults standardUserDefaults] setBool:NO forKey:@"NSViewSetAncestorsWindowFirst"];
|
||||
|
||||
// register for window layering changes, so that we can update the bookmarks menu
|
||||
NSNotificationCenter* notificationCenter = [NSNotificationCenter defaultCenter];
|
||||
[notificationCenter addObserver:self selector:@selector(windowLayeringDidChange:) name:NSWindowDidBecomeKeyNotification object:nil];
|
||||
|
Loading…
x
Reference in New Issue
Block a user