[meta-freescale] Yacto rootfs: multi-touch message cannot handled by "close" button

Duan Fugang-B38611 B38611 at freescale.com
Sun Sep 29 19:33:55 PDT 2013


From: Peter Hutterer [mailto:peter.hutterer at who-t.net]
Sent: Monday, September 30, 2013 9:14 AM

> To: Duan Fugang-B38611
> Cc: Eric Bénard; Burton, Ross; meta-freescale at yoctoproject.org; Rutledge
> Shawn
> Subject: Re: [meta-freescale] Yacto rootfs: multi-touch message cannot
> handled by "close" button
> 
> On Thu, Sep 26, 2013 at 01:24:59PM +0000, Duan Fugang-B38611 wrote:
> > From: Eric Bénard [mailto:eric at eukrea.com]
> > Data: Thursday, September 26, 2013 5:46 PM
> >
> > > To: Duan Fugang-B38611
> > > Cc: Burton, Ross; meta-freescale at yoctoproject.org;
> > > peter.hutterer at who- t.net; Rutledge Shawn
> > > Subject: Re: [meta-freescale] Yacto rootfs: multi-touch message
> > > cannot handled by "close" button
> > >
> > > Hi Duan,
> > >
> > > Le Thu, 26 Sep 2013 09:25:12 +0000,
> > > Duan Fugang-B38611 <B38611 at freescale.com> a écrit :
> > > > There have some xorg log: (Which shows the touch can be recognized
> > > > by
> > > evdev)
> > > >
> > > Ross asked you to launch xev from your console and touch the screen
> > > in the xev window so that you can provide xev's log to understand
> > > your problem.
> > >
> > > More info about xev :
> > > http://manpages.ubuntu.com/manpages/hardy/man1/xev.1.html
> > >
> > > Eric
> >
> > I had sent out the test result as the previous email as attached mail.
> >
> > Thanks,
> > Andy
> 
> > Date: Thu, 26 Sep 2013 09:19:12 +0000
> > From: Duan Fugang-B38611 <B38611 at freescale.com>
> > To: "Burton, Ross" <ross.burton at intel.com>
> > CC: "peter.hutterer at who-t.net" <peter.hutterer at who-t.net>, Rutledge
> > Shawn  <Shawn.Rutledge at digia.com>, "meta-freescale at yoctoproject.org"
> >  <meta-freescale at yoctoproject.org>
> > Subject: RE: Yacto rootfs: multi-touch message cannot handled by "close"
> >  button
> >
> > From: Burton, Ross [mailto:ross.burton at intel.com]
> > Data: Thursday, September 26, 2013 4:51 PM
> >
> > > To: Duan Fugang-B38611
> > > Cc: peter.hutterer at who-t.net; Rutledge Shawn; meta-
> > > freescale at yoctoproject.org
> > > Subject: Re: Yacto rootfs: multi-touch message cannot handled by
> > > "close" button
> > >
> > > On 26 September 2013 09:46, Duan Fugang-B38611
> > > <B38611 at freescale.com>
> > > wrote:
> > > > Ross, thanks for your quick response.
> > > >
> > > > Why the touch can be recognized in the single  touch mode ? Since
> > > > the driver is similar the same except report event types.
> > > >
> > > > And, how to validate whether the touch can be recognized ?
> > >
> > > I don't know why it can't be recognised in multitouch, and unless
> > > you send me your hardware I can't tell you.  That's what we're
> > > attempting to debug over email.
> > >
> > My hardware:
> > Board: Imx6q sabresd
> > Touchscreen: hannStar display with egalax i2c touchscreen
> >
> >
> > > As far as xev is concerned there should be zero difference between
> > > using a mouse to click in the window, and using the touchscreen.
> > > Try all combinations of pressing/clicking in the xev window, and
> > > report back.
> > >
> > > Ross
> >
> > ØFor EGALAX MULTI TOUCH:
> > o       When click the “X” icon to close window,  the window cannot be
> closed, and print the log: (picture #1)
> >         LeaveNotify event, serial 28, synthetic NO, window 0x1000001,
> >         root 0xc2, subw 0x0, time 347181500, (981,-34), root:(981,14),
> >         mode NotifyNormal, detail NotifyNonlinear, same_screen YES,
> >         focus YES, state 0
> >
> > o       When click the control bar: (picture #2)
> >         LeaveNotify event, serial 28, synthetic NO, window 0x1000001,
> >         root 0xc2, subw 0x0, time 348522728, (375,-26), root:(375,22),
> >         mode NotifyNormal, detail NotifyNonlinear, same_screen YES,
> >         focus YES, state 0
> >
> > o       When click the blank region: (picture #3)
> >         MotionNotify event, serial 28, synthetic NO, window 0x1000001,
> >         root 0xc2, subw 0x0, time 348582340, (289,92), root:(289,140),
> >         state 0x0, is_hint 0, same_screen YES
> >
> >         ButtonPress event, serial 28, synthetic NO, window 0x1000001,
> >         root 0xc2, subw 0x0, time 348582340, (289,92), root:(289,140),
> >         state 0x100, button 1, same_screen YES
> >
> >         ButtonRelease event, serial 28, synthetic NO, window 0x1000001,
> >         root 0xc2, subw 0x0, time 348582619, (289,92), root:(289,140),
> >         state 0x100, button 1, same_screen YES
> >
> > o       When click the other icons on the control bar, work fine and
> there have sub-window pop: (picture #4)
> >         FocusOut event, serial 28, synthetic NO, window 0x1000001,
> >         mode NotifyGrab, detail NotifyNonlinear
> >
> >         VisibilityNotify event, serial 28, synthetic NO, window
> 0x1000001,
> >         state VisibilityPartiallyObscured
> >
> > All other operations are right, only clicking "X" icon cannot close the
> windows.
> 
> xev only listens to windows in the white area. the window decorations are
> provided by the window manager, which should also handle the event on the
> close button. if your WM is QT based, maybe QT has some debugging options
> you can enable? I'm not sure off-heart.
> 
Yes, the current WM is based QT.

Thanks for your suggestion.

For single touch, xev can listen the ClientMessage event with message 0x107 (WM_DELETE_WINDOW) when click the "X" to close the window in normally.
For multi touch, xev cannot get the message.

You mean the event is handled by WM, it is matchbox-window-manager issue ?

> you can also look into hooking up systemtap do debug which events are
> actually sent by the server, this should at least give you a hint of what
> the server does and where the problem lies.
> 
> Cheers,
>    Peter


More information about the meta-freescale mailing list