After tracing sawman_initialize() in sawman.c, I found that codes in the
following...
/* Initialize tiers. */
for (i=0; i<D_ARRAY_SIZE(dfb_config->layers); i++) {
if (!dfb_config->layers[i].stacking)
continue;
ret = add_tier( sawman, i, dfb_config->layers[i].stacking );
if (ret) {
D_MAGIC_CLEAR( sawman );
goto error;
}
}
the function add_tier() will never happen, that is, no tiers added. So I
will get the error message "(!) SaWMan/WM: Cannot add window into unknown
stack!" in the function wm_add_window() implemented in sawman_wm.c. But why?
---------- Forwarded message ----------
From: Chiakie <[EMAIL PROTECTED]>
Date: 2007/9/6 下午 3:44
Subject: Problems about DirectFB-1.1.0 with SaWMan 0.2
To: [email protected]
Dear all,
When I try to create a window with SaWMan 0.2 under DirectFB-1.1.0, the part
of source codes follows,
/* Create a layer and set background image */
{
dfb->GetDisplayLayer(dfb, DLID_PRIMARY, &layer);
layer->SetCooperativeLevel(layer, DLSCL_ADMINISTRATIVE);
// Set layer background color to be transparent for preventing white
mask on video layer.
layer->SetBackgroundColor(layer, 0x00, 0x00, 0x00, 0x00);
layer->SetBackgroundMode(layer, DLBM_COLOR);
}
/* Create a window and set related attributes */
{
DFBWindowDescription wdesc;
wdesc.flags = DWDESC_WIDTH | DWDESC_HEIGHT | DWDESC_POSX |
DWDESC_POSY | DWDESC_CAPS;
wdesc.width = disp_width;
wdesc.height = disp_height;
wdesc.posx = 0;
wdesc.posy = 0;
wdesc.caps = DWCAPS_ALPHACHANNEL;
int ret = layer->CreateWindow(layer, &wdesc, &window);
if(ret != DFB_OK)
printf("ERROR: Create window failed.\n");
window->SetOpacity(window, 0xff);
window->GetSurface(window, &wsurface);
wsurface->Clear(wsurface, 0x00, 0x00, 0x00, 0x00);
}
I've got the error message:
(!) SaWMan/WM: Cannot add window into unknown stack!
(!) Core/Windows: Failed to add window to manager!
--> Not supported!
P.S. My program is running on sh-architecture-based embedded device.
Someone can help me? Thanks.
--
Chien Kuo-Feng
--
Chien Kuo-Feng
_______________________________________________
directfb-dev mailing list
[email protected]
http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev