[X2go-dev] X2go client window in rootless mode crashes when mouse is moved over title bar

Max Chao yochaos at gmail.com
Mon Jan 31 05:32:03 CET 2011


Mike Gabriel <mike.gabriel at ...> writes:

> 
> Hi there,
> 
> Am Dienstag, 25. Januar 2011, 13:14:26 schrieb Mike Gabriel:
> > Hi there,
> > 
> > this issue has probably been already addressed:
> > 
> > During development of PyHoca-GUI I encounter some weird behaviour on
> > mouse moves that cross the title bar of a rootless session window
> > (e.g. xterm via X2go, but also any other app). I think that this
> > problem only occurs with the initial rootless window (e.g. xterm). Any
> > subsequently started application window has not shown this behaviour
> > so far.
> 
> I have a gut feeling that the problem is burried in Events.c of the nxagent 
> hw. Maybe it's worth trying to comment out the nxagentOption(Menu) block in 
> Events.c. However, I currently cannot compile the x2goagent package (because 
> of mismatching nxlib versions in Debian and the ones used by
> X2go).
> 
> Greets,
> Mike
> 
> mike <at> minobo:~/MyDocuments/4packages/_examples_/x2goagent-3.4.0-
3/programs/Xserver/hw/nxagent$ 
> diff -u Events.c.orig Events.c
> --- Events.c.orig       2011-01-25 22:36:54.000000000 +0100
> +++ Events.c    2011-01-25 22:22:06.000000000 +0100
> @@ -1028,6 +1028,7 @@
>              nxagentLastEnteredWindow = pWin;
>            }
> 
> +          /*
>            if (nxagentPulldownDialogPid == 0 && 
> nxagentLastEnteredTopLevelWindow &&
>                    (X.xmotion.y_root < nxagentLastEnteredTopLevelWindow -> 
> drawable.y + 4))
>            {
> @@ -1043,6 +1044,7 @@
>                nxagentPulldownDialog(nxagentLastEnteredTopLevelWindow -> 
> drawable.id);
>              }
>            }
> +          */
> 
>            x.u.keyButtonPointer.rootX = X.xmotion.x_root;
>            x.u.keyButtonPointer.rootY = X.xmotion.y_root;
> 

Hi Mike,

I met the similar issue several months ago, please refer the following link
http://article.gmane.org/gmane.linux.terminal-
server.x2go.devel/522/match=yochaos

I can't recall all the details. It seems like that if you move mouse on the 
title bar of the x2go windows, it will call an application "nxclient" to show 
the pull-down menu. If the "nxclient" doesn't exist, it will call the 
application defined in environment virable NX_CLIENT, which is defined as 
"/usr/bin/x2gosuspend-agent" in /usr/bin/x2gostartagent. So just change 
NX_CLIENT in /usr/bin/x2gostartagent to "/bin/true" will make a workaround of 
this issue.

Hope it will help.

Br,
Max






More information about the x2go-dev mailing list