nanogui: NXlib does not handle GR_UPDATE_ACTIVATE


Previous by date: 15 Feb 2011 18:18:33 -0000 Re: NXlib does not handle GR_UPDATE_ACTIVATE, Greg Haerr
Next by date: 15 Feb 2011 18:18:33 -0000 Re: NXlib does not handle GR_UPDATE_ACTIVATE, Greg Haerr
Previous in thread: 15 Feb 2011 18:18:33 -0000 Re: NXlib does not handle GR_UPDATE_ACTIVATE, Greg Haerr
Next in thread: 15 Feb 2011 18:18:33 -0000 Re: NXlib does not handle GR_UPDATE_ACTIVATE, Greg Haerr

Subject: RE: [nanogui] NXlib does not handle GR_UPDATE_ACTIVATE
From: "Martin Kajdas" ####@####.####
Date: 15 Feb 2011 18:18:33 -0000
Message-Id: <22F1610BD82AD74D9C745FA543161959DC7C98@mkmail.MKPROD.COM>

I added GR_UPDATE_ACTIVATE case to GR_UPDATE_SIZE and GR_UPDATE_REPARENT
cases in translateNXevent() (NextEvent.c in nxlib 0.46) and this fixed
the first issue.
Is this the correct action to perform for GR_UPDATE_ACTIVATE?

I commented out the GsError in the GrSetFocus() (srcfunc.c in Nano-X
0.92) and that fixed the second issue. This always happened when closing
one of the windows so de-synchronization is possible.

I did not notice any side effects so far.
Martin


-----Original Message-----
From: Greg Haerr ####@####.#### 
Sent: Thursday, February 10, 2011 7:12 PM
To: Martin Kajdas; ####@####.####
Subject: Re: [nanogui] NXlib does not handle GR_UPDATE_ACTIVATE

> translateNXevent: unhandled update event subtype 6
> which is GR_UPDATE_ACTIVATE, when it closes one of the windows.
> It used to work with older FLTK (1.1.?) so this is a new event they
> added?.

Not sure what to say here, perhaps we should diff the lower level FLTK
routines between your two versions, to see what X11 calls are different.
 

> The error after that crashes the app:
> Nano-X: GsError (GrSetFocus) Unmapped focus window: 12

I've found that sometimes having the server call GsError causes it
to get desynchronized from the client, and things go downhill.  One
idea is to comment out the GsError in the GrSetFocus() function
in nanox/srvfunc.c, which is where that's coming from.  It's possible
an X11 routine or Nano-X needs to search child or parent windows
for focus if the window requested isn't mapped, we'll have to look into
this.  Or it could just be the closed window above, and it's a bug
in FLTK that doesn't cause problems in X11.  Remove the error
above and lets see what happens.

Regards,

Greg


Previous by date: 15 Feb 2011 18:18:33 -0000 Re: NXlib does not handle GR_UPDATE_ACTIVATE, Greg Haerr
Next by date: 15 Feb 2011 18:18:33 -0000 Re: NXlib does not handle GR_UPDATE_ACTIVATE, Greg Haerr
Previous in thread: 15 Feb 2011 18:18:33 -0000 Re: NXlib does not handle GR_UPDATE_ACTIVATE, Greg Haerr
Next in thread: 15 Feb 2011 18:18:33 -0000 Re: NXlib does not handle GR_UPDATE_ACTIVATE, Greg Haerr


Powered by ezmlm-browse 0.20.