Japanese translation of message catalog for Sawfish Window-Manager
Revision | af823b5cafd960c39778e373b4888f1de3a91dc0 (tree) |
---|---|
Zeit | 2008-01-17 09:30:08 |
Autor | Janek Kozicki <jkozicki@src....> |
Commiter | Janek Kozicki |
apply patch by Thadeu Lima de Souza Cascardo
This is a patch for Debian bug #406559, and possibly #403100, too. It seems these are ultimately caused by Xlib "helpfully" converting 32 bit messages from the server to the client's native long type, which is bad for sawfish since rep does distinguish these.
A longer description can be found in the patch's author's message in http://bugs.debian.org/406559
svn path=/trunk/; revision=4208
@@ -21,6 +21,7 @@ | ||
21 | 21 | |
22 | 22 | #include "sawmill.h" |
23 | 23 | #include <limits.h> |
24 | +#include <stdint.h> | |
24 | 25 | #include <string.h> |
25 | 26 | #include <time.h> |
26 | 27 | #include <X11/extensions/shape.h> |
@@ -641,7 +642,10 @@ client_message (XEvent *ev) | ||
641 | 642 | case 32: |
642 | 643 | data = Fmake_vector (rep_MAKE_INT(5), Qnil); |
643 | 644 | for (i = 0; i < 5; i++) |
644 | - rep_VECTI(data,i) = rep_make_long_uint (ev->xclient.data.l[i]); | |
645 | + { | |
646 | + unsigned long l = (uint32_t) ev->xclient.data.l[i]; | |
647 | + rep_VECTI(data,i) = rep_make_long_uint (l); | |
648 | + } | |
645 | 649 | break; |
646 | 650 | |
647 | 651 | default: |