return YES;
}
-MSInstanceMessageHook0(void, SBAwayController, undimScreen) {
+static void Undim_(SBAwayController *self) {
if ([self isDimmed]) {
menu_ = false;
[[cydgets_ objectAtIndex:active_] enableCydget:self];
[[[self awayView] window] makeKeyWindow];
}
+}
+MSInstanceMessageHook0(void, SBAwayController, undimScreen) {
+ Undim_(self);
MSOldCall();
}
+MSInstanceMessageHook1(void, SBAwayController, undimScreen, BOOL, undim) {
+ Undim_(self);
+ MSOldCall(undim);
+}
+
static void Deactivate_(SBAwayController *self) {
[[cydgets_ objectAtIndex:active_] disableCydget:self];
active_ = 0;