haiku/src/bin/ffm.cpp
Jérôme Duval 3aeed6607c include strings.h where appriopriate...
instead or additionally to string.h, in preparation for functions move.
* moves str[n]casecmp() functions and others to strings.h.
* strings.h doesn't include string.h anymore.
* this solves #10949
2014-08-08 22:40:37 +02:00

32 lines
451 B
C++

/*
* ffm.cpp
* (c) 2002, Carlos Hasan, for OpenBeOS.
*/
#include <strings.h>
#include <Application.h>
#include <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;
}