widget: check background pixmap != 0
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
883c12d8ff
commit
0f7a8f16c6
6
widget.c
6
widget.c
|
@ -163,9 +163,8 @@ widget_render(widget_node_t *wnode, draw_context_t *ctx, xcb_gcontext_t gc, xcb_
|
||||||
pixmap_atom, 0, 1);
|
pixmap_atom, 0, 1);
|
||||||
if((prop_r = xcb_get_property_reply(globalconf.connection, prop_c, NULL)))
|
if((prop_r = xcb_get_property_reply(globalconf.connection, prop_c, NULL)))
|
||||||
{
|
{
|
||||||
if((data = xcb_get_property_value(prop_r)))
|
if((data = xcb_get_property_value(prop_r))
|
||||||
{
|
&& (rootpix = *(xcb_pixmap_t *) data))
|
||||||
rootpix = *(xcb_pixmap_t *) data;
|
|
||||||
switch(position)
|
switch(position)
|
||||||
{
|
{
|
||||||
case Left:
|
case Left:
|
||||||
|
@ -194,7 +193,6 @@ widget_render(widget_node_t *wnode, draw_context_t *ctx, xcb_gcontext_t gc, xcb_
|
||||||
ctx->width, ctx->height);
|
ctx->width, ctx->height);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
p_delete(&prop_r);
|
p_delete(&prop_r);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue