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