mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
force a floating point division
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
8129bb7135
commit
88a08c210f
1 changed files with 1 additions and 1 deletions
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));
|
||||
XFree(data);
|
||||
current_opacity = current_opacity_raw / 0xffffffff;
|
||||
current_opacity = (double) current_opacity_raw / 0xffffffff;
|
||||
}
|
||||
else
|
||||
set_prop = 1;
|
||||
|
|
Loading…
Reference in a new issue