fix segfault with transparency
This commit is contained in:
parent
bd5bef5acf
commit
2044f82761
2
client.c
2
client.c
|
@ -628,7 +628,7 @@ uicb_settrans(Display *disp __attribute__ ((unused)),
|
|||
(unsigned char **) &data);
|
||||
if(data)
|
||||
{
|
||||
memcpy(¤t_opacity, data, sizeof(double));
|
||||
memcpy(¤t_opacity, data, sizeof(unsigned int));
|
||||
XFree((void *) data);
|
||||
delta += ((current_opacity * 100.0) / 0xffffffff);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue