[Xfce4-commits] [xfce/xfwm4] 01/01: device: Fix wrong mask len

noreply at xfce.org noreply at xfce.org
Thu Sep 13 20:28:48 CEST 2018


This is an automated email from the git hooks/post-receive script.

o   l   i   v   i   e   r       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository xfce/xfwm4.

commit 2080fa3c81b3810228ae5a8abbb494c78dd1d566
Author: Timo <timo.teras at iki.fi>
Date:   Thu Sep 13 20:25:33 2018 +0200

    device: Fix wrong mask len
    
    Bug: 14695
    
    The `mask_len` field is setup incorrectly in
    `xfwm_device_fill_xi2_event_mask()`.
    
    The size is the pointer length, not the bitmask data area length.
---
 src/device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/device.c b/src/device.c
index b1e33ae..01c0c81 100644
--- a/src/device.c
+++ b/src/device.c
@@ -301,7 +301,7 @@ xfwm_device_fill_xi2_event_mask (XIEventMask *xievent_mask, gulong core_mask)
     guint i;
 
     xievent_mask->deviceid = XIAllMasterDevices;
-    xievent_mask->mask_len = sizeof (mask);
+    xievent_mask->mask_len = len;
     xievent_mask->mask = mask;
 
     for (i = 0; i < G_N_ELEMENTS (core_to_xi2); i++)

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list