Added ffm, code by Carlos Hasan.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2154 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
François Revol 2002-12-03 19:25:26 +00:00
parent 358f694bee
commit 9fbdca8c2b
2 changed files with 29 additions and 0 deletions

View File

@ -5,6 +5,7 @@ StdBinCommands
beep.cpp
clipboard.cpp
df.cpp
ffm.cpp
iroster.cpp
isvolume.cpp
listattr.cpp

28
src/apps/bin/ffm.cpp Normal file
View File

@ -0,0 +1,28 @@
/*
* 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;
}