Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!purdue!decwrl!sgi!daisy!klee From: klee@daisy.UUCP (Ken Lee) Newsgroups: comp.windows.x Subject: bit_gravity vs. popup menus Message-ID: <1827@daisy.UUCP> Date: 19 Oct 88 00:02:08 GMT Reply-To: klee@daisy.UUCP (Ken Lee) Organization: Daisy Systems Corp., Mountain View, Ca. Lines: 29 We have a client that uses SouthWestGravity on resize. When we resize this window using a window manager popup menu, we have a scenario like this: 1. window manager popup comes up, use selects "resize" 2. popup goes away, X queues expose event for client 3. window manager grabs server and gets new size from user 4. window manager ungrabs server and XResize's window 5. X server resizes window, copying image according to gravity, and queues resize/gravity events for client 6. client reads expose event from (2) 7. client reads resize/gravity events from (5) Note that when the client reads the expose event, the server has already moved the graphics, but the client doesn't know it yet, so the client redraws in the (old) wrong place, leaving a hole in the (new) right place. Does anyone know of a good, clean way to redraw correctly? We'd prefer not to have to use backing store, since that's pretty expensive on our color displays. Thanks much for any help. Ken Lee Daisy Systems Corp., Interactive Graphics Tools Dept. -- uucp: {ames!atari, ucbvax!sgi, pyramid, uunet}!daisy!klee arpanet: daisy!klee@sgi.com or daisy!klee@uunet.uu.net I'm not a tourist, I was born in California.