nanogui: nano-X needs window manager to run on X11 ?
Subject:
Re: nano-X needs window manager to run on X11 ?
From:
Tomasz Motylewski ####@####.####
Date:
13 Mar 2001 08:33:09 -0000
Message-Id: <Pine.LNX.3.96.1010313090558.23561B-100000@linserv.intern.bfad.de>
On Mon, 12 Mar 2001, Greg Haerr wrote:
> : I mean it displays empty frame (not even filled with default black nano-X
> : background), but starts updating, when it receives the focus (mouse in).
>
> I would look at the drivers/scr_x11.c code; there's some strange
> stuff in there in the setup code. You might turn on some debug output,
> and printf the events you receive.
OK, I will do. As for what I see now (0.89pre7):
x11_handle_event:
if (ev->xcolormap.state == ColormapInstalled) {
DPRINTF("colormap uninstalled\n");
x11_colormap_installed = 0;
}
else if (ev->xcolormap.state == ColormapInstalled) {
x11_colormap_installed = 1;
DPRINTF("colormap installed\n");
}
2 times ev->xcolormap.state == ColormapInstalled - does not make sense
to me.
else if (ev->type == FocusIn) {
if (!x11_colormap_installed) {
DPRINTF("setting colormap\n");
XInstallColormap(x11_dpy, x11_colormap);
inited = 1;
}
}
- this could be a problem - I believe one does not get FocusIn without
window manager.
But XInstallColormap is also in X11_open. What the following comment
means?
/* Note: only single screen */
static PSD
X11_open(PSD psd)
> Actually, it should be quite straight forward to get a Nano-X program
> to run directly on Xlib... Grxxx ->Xxxx macro library might
> do the trick.
OK, but it does not exist at the moment.
Another very nice feature would be to display nano-X directly on the root
(background) window as it does on framebuffer.
Best regards,
--
Tomasz Motylewski