Re: 2 Elo touchscreen button event bug

Marc Aurele La France <[email protected]>
Newsgroups gmane.comp.xfree86.devel
Message-ID <[email protected]>
On Tue, 8 May 2007, srimugunthan dhandapani wrote:

> I have 2 Elo touch screen monitors(1024 x 768) and they are configured with
> Xinerama extension.

> The bug that we have is that the button click event doesnt properly switch
> between the screens but the cursor movement is correct.

> When we touch on a button1 on screen 1 and then touch button2 on screen 2 we
> found that the touch on button2 is recognized only for button 1(with the
> focus still being there on button1) but we found that cursor has moved to
> button 2. Subsequent touches on button2 are recognized correctly.The problem
> was there only for the first touch on button2

> I narrowed the problem to xf86XInputSetScreen.

> I was able to get an workaround

> I modified the function NewCurrentScreen in events.c.

> when calling SetCursorPosition I hardcode 1023 and 0 for the X cordinate for
> screen1 and screen0 respectively. That solved the bug.But I am not sure why
> it solves the bug !!

> I am not sure why this fix it.

> Anybody have an explanation for this?

It's possible you are not specifying the ScreenNo option for each of the 
Elo's.  That option should be set to 0 & 1 respectively.  Deafult is 0.

Marc.

+----------------------------------+----------------------------------+
|  Marc Aurele La France           |  work:   1-780-492-9310          |
|  Academic Information and        |  fax:    1-780-492-1729          |
|    Communications Technologies   |  email:  [email protected]         |
|  352 General Services Building   +----------------------------------+
|  University of Alberta           |                                  |
|  Edmonton, Alberta               |    Standard disclaimers apply    |
|  T6G 2H1                         |                                  |
|  CANADA                          |                                  |
+----------------------------------+----------------------------------+
XFree86 developer and VP.  ATI driver and X server internals.
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.