nanogui: Thread: NXlib does not handle GR_UPDATE_ACTIVATE


[<<] [<] Page 1 of 1 [>] [>>]
Subject: NXlib does not handle GR_UPDATE_ACTIVATE
From: "Martin Kajdas" ####@####.####
Date: 10 Feb 2011 19:33:31 -0000
Message-Id: <22F1610BD82AD74D9C745FA543161959DC7C96@mkmail.MKPROD.COM>

I am using NXlib 0.46 + nano-X 0.92 with FLTK 1.1.10 and it outputs
NXlib message:

translateNXevent: unhandled update event subtype 6

which is GR_UPDATE_ACTIVATE, when it closes one of the windows.

(I noticed that GR_UPDATE_UNMAPTEMP is also not implemented.)

It used to work with older FLTK (1.1.?) so this is a new event they
added?.

 

The error after that crashes the app:

Nano-X: GsError (GrSetFocus) Unmapped focus window: 12

 

Any ideas on how to fix this?

Martin

 

Subject: Re: [nanogui] NXlib does not handle GR_UPDATE_ACTIVATE
From: "Greg Haerr" ####@####.####
Date: 11 Feb 2011 03:12:15 -0000
Message-Id: <00d101cbc999$79229580$6964a8c0@winXP>

> 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

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

Subject: Re: [nanogui] NXlib does not handle GR_UPDATE_ACTIVATE
From: "Greg Haerr" ####@####.####
Date: 18 Feb 2011 21:59:29 -0000
Message-Id: <18bd01cbcfb7$28de8e70$0300a8c0@RDP>

> 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'll add both your fixes to the git repo.  With the call to GsError
commented out, there should never be any desync issues.  I'm
not sure why the error occurs, but it seems that it's a bug in FLTK
and X11 doesn't throw an error on invalid setfocus.

Regards,

Greg
[<<] [<] Page 1 of 1 [>] [>>]


Powered by ezmlm-browse 0.20.