// Basewindow.cc for fluxter. // // Copyright (c) 2002 Steve Cooper, stevencooper@isomedia.com // Copyright (c) 1998-2000 by John Kennis, jkennis@chello.nl // // This program is free software; you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation; either version 2 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program; if not, write to the Free Software // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. // // (See the included file COPYING / GPL-2.0) // #include "fluxter.hh" #include "main.hh" void Usage() { fprintf(stderr,"\n%s version %s \n",FLUXTER,FLUXTER); fprintf(stderr,"Usage: %s [options]\n",FLUXTER); fprintf(stderr,"Options:\n"); fprintf(stderr,"-display X server to connect to\n"); fprintf(stderr,"-c[onfig] Alternate config file\n"); fprintf(stderr,"-n[obb] Fall back on default configuration\n"); fprintf(stderr,"-v[ersion] Display version number\n"); fprintf(stderr,"-h[elp] Display this help\n"); fprintf(stderr,"-geom[etry] Set geometry of window\n"); fprintf(stderr,"-d[ecorated] Show 'normal' decorated window\n"); fprintf(stderr,"-w[withdrawn] Place fluxter in the Slit\n"); fprintf(stderr,"-s[hape] Don't display groundplate\n\n"); } int main(int argc,char **argv) { int i; struct CMDOPTIONS options; options.display_name=NULL; options.geometry=NULL; options.withdrawn=False; options.shape=False; options.config_file=NULL; options.nobb_config=False; options.decorated=False; for(i=1;i