Yan Seiner wrote: > I'm running linux (xorg + openbox window manager). Openbox allows me to > specify window size and position based on the WM_CLASS of the window. > > An ap can also allow the size and position to be set using the > --geometry option. > > I seem to be getting hit with a triple whammy: > > I am trying to play fg on my large screen TV, which has significant > overscan. Something like 60 pixels disappear from the top left corner. > > I can specify the correct size using the --geometry option in flightgear > but that does not allow me to set the position, just the size, so I lose > the top left corner of the image. > > I can configure openbox to override an application's "wishes" and set > its size and location, but I need the WM_CLASS property set. Alas, fg > doesn't set the WM_CLASS property, just the WM_NAME property. I don't > think openbox allows me to id windows by WM_NAME. > > I've tried the --prop option on the off-chance that it might help but it > doesn't seem to have anything to do with the window properties. > > Is anyone else in this boat? How do I position the fg window in a > specific location on the screen and not just in the top left corner? > >
For posterity, look up the utilty wmctrl Here's the mini-script I use to launch fgfs, with the correct window settings and forced to be on top: #!/bin/bash (sleep 2; wmctrl -F -r "FlightGear" -e 0,33,-4,1210,650 ; wmctrl -F -r "FlightGear" -b add,above ) & fgfs $@ Basically, it sleeps for 2 seconds, then sets the location and the above property. It does this in the background while fgfs launches. -- o__ ,>/'_ o__ (_)\(_) ,>/'_ o__ A day may come (_)\(_) ,>/'_ o__ when the courage of men fails, (_)\(_) ,>/'_ when we forsake our friends and break all (_)\(_) bonds of fellowship, but it is not this day. It is not this day! This day we ride! ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ Flightgear-users mailing list Flightgear-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-users