Path: utzoo!attcan!uunet!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!rpi!bu.edu!bucasb!slehar From: slehar@cochlea.bu.edu (Steve Lehar) Newsgroups: comp.sys.sgi Subject: Re: SGI's migration to X Message-ID: Date: 4 Sep 90 14:59:33 GMT References: <208@voodoo.UUCP> <90Aug30.200125edt.682@smoke.cs.toronto.edu> <3320@dftsrv.gsfc.nasa.gov> Sender: news@bu.edu.bu.edu Organization: Boston University Center for Adaptive Systems Lines: 45 In-reply-to: joe@etac632's message of 31 Aug 90 20:32:27 GMT When I complain that X doesn't allow advance positioning of the window, joe@etac632 says... ----------------------------------------------------------------------- | There is an XSizeHints struct which includes the position and size. Be | sure to set the flags parameter to USPosition. The helloworld program | in the "Introduction to the X Window System" by Oliver Jones shows an | example of this which we used... ----------------------------------------------------------------------- I followed that same helloworld template, but somehow, when I modified it to do images, it ceased to go to where it was supposed to. I loaded up my XSizeHints as required... /**** set window position and size hints ****/ xsh.flags = (PPosition | PSize); xsh.x = 100; <------- please put window at position 100,100 xsh.y = 100; xsh.height = win_ysize; xsh.width = win_xsize; but it simply ignored this "hint". bernie@ecr.mu.oz.au (Bernie Kirby) tells me that the secret is ... "you have to set the "override_redirect" thingy to True somewhere." Well, this is likely to be the kind of thing that has to be done. Do you see my complaint? This kind of thing is typical of X. If it was better designed, the window position should either be defined in the window hints structure, or should be a parameter to XCreateWindows(). In fact, you can be intimately familiar with BOTH of these things and STILL not be able to position your window because you haven't read about the undocumented "override_redirect" thingy! X is just full of such hidden mysteries! I don't doubt that these things can be done somehow, but I'm afraid you need a PhD in XOlogy to just open a window and put an image in it! -- (O)((O))(((O)))((((O))))(((((O)))))(((((O)))))((((O))))(((O)))((O))(O) (O)((O))((( slehar@bucasb.bu.edu )))((O))(O) (O)((O))((( Steve Lehar Boston University Boston MA )))((O))(O) (O)((O))((( (617) 424-7035 (H) (617) 353-6425 (W) )))((O))(O) (O)((O))(((O)))((((O))))(((((O)))))(((((O)))))((((O))))(((O)))((O))(O)