From 903c3608ee2d134baa52916033f34ed9db5838ac Mon Sep 17 00:00:00 2001 From: Edward Sheldrake Date: Sat, 6 Apr 2013 13:39:38 +0100 Subject: [PATCH] Fix reading backlight level --- xbacklight.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xbacklight.c b/xbacklight.c index 2189095..27f9046 100644 --- a/xbacklight.c +++ b/xbacklight.c @@ -88,7 +88,7 @@ backlight_get (xcb_connection_t *conn, xcb_randr_output_t output) prop_reply->format != 32) { value = -1; } else { - value = *((long *) xcb_randr_get_output_property_data (prop_reply)); + value = *((int32_t *) xcb_randr_get_output_property_data (prop_reply)); } free (prop_reply); -- 1.8.1.4