Bug 699538 - Only register the event tap while our app is in the background and has a context menu open, because that's the only scenario we need it for. r=smichaud

This commit is contained in:
Benoit Girard
2011-11-07 11:43:10 -05:00
parent c0a7ea2372
commit 61a033adfb
3 changed files with 12 additions and 4 deletions

View File

@@ -32,14 +32,14 @@ public:
static nsresult SwizzleMethods(Class aClass, SEL orgMethod, SEL posedMethod,
bool classMethods = false);
void RegisterForAllProcessMouseEvents();
void UnregisterAllProcessMouseEventHandlers();
protected:
nsresult RegisterForSleepWakeNotifcations();
void RemoveSleepWakeNotifcations();
void RegisterForAllProcessMouseEvents();
void UnregisterAllProcessMouseEventHandlers();
protected:
static nsToolkit* gToolkit;