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:
@@ -5,6 +5,7 @@ StdBinCommands
|
|||||||
beep.cpp
|
beep.cpp
|
||||||
clipboard.cpp
|
clipboard.cpp
|
||||||
df.cpp
|
df.cpp
|
||||||
|
ffm.cpp
|
||||||
iroster.cpp
|
iroster.cpp
|
||||||
isvolume.cpp
|
isvolume.cpp
|
||||||
listattr.cpp
|
listattr.cpp
|
||||||
|
|||||||
@@ -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;
|
||||||
|
}
|
||||||
|
|
||||||
Reference in New Issue
Block a user