diff --git a/client.c b/client.c index 41af51ba1..37b7385eb 100644 --- a/client.c +++ b/client.c @@ -801,7 +801,7 @@ uicb_client_settrans(int screen __attribute__ ((unused)), char *arg) { memcpy(¤t_opacity_raw, data, sizeof(unsigned int)); XFree(data); - current_opacity = current_opacity_raw / 0xffffffff; + current_opacity = (double) current_opacity_raw / 0xffffffff; } else set_prop = 1;