45d431a676
Consequently use the IANA "x-" prefix for unofficial MIME types. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26930 a95241bf-73f2-0310-859d-f6bbb57e9c96
29 lines
462 B
C++
29 lines
462 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.Haiku-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;
|
|
}
|
|
|