Fix for mac build.

meow-7.2.2
Dave Parks 2010-04-26 21:33:18 -05:00
parent 809b6879e1
commit c0a2a44a44
1 changed files with 6 additions and 6 deletions

View File

@ -273,7 +273,7 @@ int main(int argc, char **argv)
}
// Check for a change in this process's frontmost window.
if(FrontWindow() != front_window)
if(ActiveNonFloatingWindow() != front_window)
{
ProcessSerialNumber self = { 0, kCurrentProcess };
ProcessSerialNumber parent = { 0, kNoProcess };
@ -299,7 +299,7 @@ int main(int argc, char **argv)
}
}
if((FrontWindow() != NULL) && (front_window == NULL))
if((ActiveNonFloatingWindow() != NULL) && (front_window == NULL))
{
// Opening the first window
@ -311,7 +311,7 @@ int main(int argc, char **argv)
if(layer_group)
{
SetWindowGroup(FrontWindow(), layer_group);
SetWindowGroup(ActiveNonFloatingWindow(), layer_group);
}
if(parent_is_front_process)
@ -320,9 +320,9 @@ int main(int argc, char **argv)
(void) SetFrontProcess( &self );
}
ActivateWindow(FrontWindow(), true);
ActivateWindow(ActiveNonFloatingWindow(), true);
}
else if((FrontWindow() == NULL) && (front_window != NULL))
else if((ActiveNonFloatingWindow() == NULL) && (front_window != NULL))
{
// Closing the last window
@ -342,7 +342,7 @@ int main(int argc, char **argv)
window_hack_state = 2;
}
front_window = FrontWindow();
front_window = ActiveNonFloatingWindow();
}
}