haiku/src/bin/ffm.cpp
Axel Dörfler 17049c451a Moved bin/ directory out of apps/.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@11909 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-19 00:09:19 +00:00

29 lines
463 B
C++

/*
* ffm.cpp
* (c) 2002, Carlos Hasan, for OpenBeOS.
*/
#include <string.h>
#include <app/Application.h>
#include <interface/InterfaceDefs.h>
int main(int argc, char *argv[])
{
BApplication app("application/x.vnd.OpenBe-ffm");
bool follow;
if (argc == 2) {
if (strcasecmp(argv[1], "yes") == 0 || strcasecmp(argv[1], "on") == 0)
follow = true;
else
follow = false;
}
else {
follow = true;
}
set_focus_follows_mouse(follow);
return 0;
}