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:
parent
358f694bee
commit
9fbdca8c2b
@ -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
28
src/apps/bin/ffm.cpp
Normal 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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user