Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!usc!snorkelwacker!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: 31 Aug 90 14:26:39 GMT References: <208@voodoo.UUCP> <90Aug30.200125edt.682@smoke.cs.toronto.edu> Sender: news@bu.edu.bu.edu Organization: Boston University Center for Adaptive Systems Lines: 35 In-reply-to: moraes@cs.toronto.edu's message of 31 Aug 90 00:01:42 GMT When I complain that XImages must be transmitted pixel by pixel you say... ||> Not true. You can build and send the entire image in one go. See ||> XPutImage. Yes, you can send the image to the screen with XPutImage(), but how do you get your array of image data INTO the XImage BEFORE you send it to the screen? XPutPixel() is the only routine provided! And when I complain that I can't specify the X window position from my code, you say... ||> Also not true. You can specify where you want the window to go. ||> At the application level, most applications will accept the ||> -geometry option -- at the program level, see XSetWMNormalHints. Yes they do, but what about if I am WRITING the application? I can make my program receive the -geometry flag (or reasonable facsimile) but what do I DO with that information? When I open my XWindow I use the call win = XCreateWindow(display, RootWindow(display, screen), xsh.x, xsh.y, xsh.width, xsh.height, bw, vTemplate.depth, InputOutput, visual, valuemask, &attrib); Note that there is no argument for x and y screen location! How do I tell this XWindow where to appear? -- (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)