Re: magictouch touch screen driver

Andrew C Aitchison <[email protected]>
Newsgroups gmane.comp.xfree86.devel
Message-ID <[email protected]>
On Wed, 25 May 2005, bruno schwander wrote:

> I tried using the screenInfo everytime the x,y position is scaled and
> returned, but that does not seem to help. I do not know how to support
> screen resolition changes. If anybody has an idea, let me know.

This is a long shot.
Clients like xdpyinfo use XF86VidModeGetModeLine() to get the
video timings, which include the current screen resolution.

I'm used to using this to see whether the resolution has been 
changed with <Ctrl><Alt><Num+> and <Ctrl><Alt><Num->.

That sort of resolution change leaves you with a virtual desktop,
so I don't know if it makes sense with a touch screen, but if so
XF86VidModeGetModeLine *doesn't* report the viewing window,
which makes the returned values less helpful.

XF86VidModeGetModeLine is specific to XFree86 (and derivatives)
and, more significantly, is a client call.
You would have to trace the code back to find a way to get the
equivalent information from within the server.

-- 
Andrew C. Aitchison					Cambridge
			[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.