Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!spool.mu.edu!cs.umn.edu!uc!shamash!timbuk!willie!wrt From: wrt@steve.cray.com (William Taylor) Newsgroups: comp.windows.x Subject: QueryPointer in tvtwm Message-ID: <093438.27007@timbuk.cray.com> Date: 24 Apr 91 15:02:48 GMT Reply-To: @steve.cray.com Followup-To: wrt@steve.cray.com Organization: Cray Research, Inc. Lines: 19 How do I get the pointer location when using tvtwm? Currently I do: XQueryPointer(XtDisplay(topLevel), RootWindowOfScreen(XtScreen(topLevel)), &root, &child, &rootx, &rooty, &winx, &winy, &keys_buttons); This returns the (rootx,rooty) as absolute window numbers and not the location offset where the user really is in the virtual root space. -- William Taylor Cray Research, Inc. wrt@steve.cray.com