force a floating point division
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
8129bb7135
commit
88a08c210f
2
client.c
2
client.c
|
@ -801,7 +801,7 @@ uicb_client_settrans(int screen __attribute__ ((unused)), char *arg)
|
||||||
{
|
{
|
||||||
memcpy(¤t_opacity_raw, data, sizeof(unsigned int));
|
memcpy(¤t_opacity_raw, data, sizeof(unsigned int));
|
||||||
XFree(data);
|
XFree(data);
|
||||||
current_opacity = current_opacity_raw / 0xffffffff;
|
current_opacity = (double) current_opacity_raw / 0xffffffff;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
set_prop = 1;
|
set_prop = 1;
|
||||||
|
|
Loading…
Reference in New Issue