xref: /haiku/src/bin/ffm.cpp (revision 4c8e85b316c35a9161f5a1c50ad70bc91c83a76f)
1 /*
2  * ffm.cpp
3  * (c) 2002, Carlos Hasan, for Haiku.
4  */
5 
6 
7 #include <strings.h>
8 
9 #include <Application.h>
10 #include <InterfaceDefs.h>
11 
12 
13 int
14 main(int argc, char *argv[])
15 {
16 	BApplication app("application/x-vnd.Haiku-ffm");
17 	bool follow;
18 
19 	if (argc == 2) {
20 		if (strcasecmp(argv[1], "yes") == 0 || strcasecmp(argv[1], "on") == 0)
21 			follow = true;
22 		else
23 			follow = false;
24 	} else {
25 		follow = true;
26 	}
27 
28 	set_focus_follows_mouse(follow);
29 	return 0;
30 }
31 
32