On Tue, Aug 26, 2003 at 08:40:03AM +0200, Erik Thiele wrote:
> Hi.
> 
> I am setting up diskless terminals for users in a rough environment.
> so there are no mouses either.
> 
> i hide the mousepointer with the "unclutter" program. works well.
> 
> i setup the fvwm config to have no decorations no menus no fancy stuff.
> 
> but what i need now is that all new windows are centered on screen. i cannot
> find an option for this. instead they are placed topleft, or if they
> are dialogs, they are centered in their mother window.
> 
> i am using Qt library to develop my program.
> 
> is there a way to center all new windows????

I don't know about Qt, but in plain X, you can set the win_gravity
field of the window's size hints to CenterGravity with
XSetWMNormalHints() and use (XDisplayWidth() / 2,
XDisplayHeight() / 2) as its starting position.

See Q 3.18 in the fvwm FAQ for a description how you can do it
with the window manager.

Bye

Dominik ^_^  ^_^
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to [EMAIL PROTECTED]
To report problems, send mail to [EMAIL PROTECTED]

Reply via email to