[oe] xmonobut

Alain2210 alain2210 at free.fr
Mon Sep 28 00:16:07 UTC 2009


Hello,

xmonobut segfault. I need this patch to get it works again.

Sincerely,

Alain
----------------------------------------------
--- main.c.orig	2006-02-05 12:49:21.000000000 +0100
+++ main.c	2009-09-28 02:11:06.000000000 +0200
@@ -137,7 +137,7 @@
 {
   Display *dpy;
   Window root;
-  unsigned char map[6];
+  unsigned char map[31];

   int buts, rst;

@@ -190,7 +190,7 @@

   if (active_button_num != last_button_num)
     {
-      buts = XGetPointerMapping(dpy, map, 5);
+      buts = XGetPointerMapping(dpy, map, 32);

       switch (active_button_num)
 	{
@@ -217,7 +217,7 @@
 	  break;
 	}
       mb_tray_app_repaint(app);
-      while((rst = XSetPointerMapping(dpy, map, buts)) == MappingBusy);
+      while((rst = XSetPointerMapping(dpy, map, 32)) == MappingBusy);
       last_button_num = active_button_num;
     }
 }




More information about the Openembedded-devel mailing list