dheller@cory.Berkeley.EDU (Dan Heller) (05/24/88)
Is there a way to start a program that just throws the window on the screen and not have it prompt me for where I want it and how big it is? If I have a program "foo" and I run it, I just want it to pop up where I specified in the size hints or the XCreateWindow() routine -- I don't want to allow any interaction with the user. I use uwm as my window manager, but I want this to happen independently of any window manager the user might be running (I'm assuming the window manager can interpose here, but I may be wrong). Dan Heller <island!argv@sun.com>
chan@hpfcmr.HP.COM (Chan Benson) (05/24/88)
Set OverrideRedirect in the SetWindowAttributes structure to true. This practice is probably discouraged for clients that want to be good boys and girls. -- Chan Benson HP Fort Collins
dana@dino.bellcore.com (Dana A. Chee) (05/25/88)
Yes, if the program specifies in its WM_HINTS that the positioning was user specified. Ex: sizehints.x = x_loc; sizehints.y = y_loc; sizehints.width = my_width; sizehints.height = my_height; sizehints.flags = (USSize | USPosition); The reason for this is that if the window manager sees that the user has specified the geometry, (the US prefix) then it will accept this as gospel and not ask anything else, but if the program did the geometry (the P prefix) then the window manager will give the user a chance to override it. -- +*************************************************************************+ * Dana Chee (201) 829-4488 * * Bellcore * * Room 2Q-250 * * 445 South Street ARPA: dana@bellcore.com * * Morristown, NJ 07960-1910 UUCP: {gateways}!bellcore!dana * +*************************************************************************+