mirror of
https://review.haiku-os.org/haiku
synced 2025-01-23 14:54:49 +01:00
3aeed6607c
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
32 lines
451 B
C++
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;
|
|
}
|
|
|