Halton Huo wrote:
> +gboolean
> +check_xsun_running()
> +{
> + GdkDisplay *display;
> + int min_keycodes, max_keycodes;
> +
> + /* determine Xsun is running */
> + display = gdk_display_get_default ();
> + XDisplayKeycodes ( GDK_DISPLAY_XDISPLAY (display), &min_keycodes,
> &max_keycodes);
> +
> + if ( max_keycodes == 254 )
> + return TRUE;
> + else
> + return FALSE;
> +}
So you can't run if the X server has a maximum keycode value of 254? Really?
That's not what the bug said was causing vino to fail on Xsun.
And if a change to the Xorg server causes it to report it can only map a maximum
keycode of 254 instead of 255 vino should stop working? That doesn't make any
sense.
> +available if you are using the X.org server.");
"Xorg server" - there is no "." in the program name. (It comes from the
X.Org Foundation, but the server is just "Xorg".)
And what if the user is using an Xserver that's not Xsun or Xorg? X does
have this little-known feature called "remote display" that lets you display
a JDS desktop onto a Windows machine running Exceed or Cygwin/X, onto an older
Linux box running XFree86, HP/DEC/IBM Unix's running their respective X servers,
etc.
--
-Alan Coopersmith- alan.coopersmith at sun.com
Sun Microsystems, Inc. - X Window System Engineering