• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Japanese translation of message catalog for Sawfish Window-Manager


Commit MetaInfo

Revisionaf823b5cafd960c39778e373b4888f1de3a91dc0 (tree)
Zeit2008-01-17 09:30:08
AutorJanek Kozicki <jkozicki@src....>
CommiterJanek Kozicki

Log Message

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

Ändern Zusammenfassung

Diff

--- a/src/events.c
+++ b/src/events.c
@@ -21,6 +21,7 @@
2121
2222 #include "sawmill.h"
2323 #include <limits.h>
24+#include <stdint.h>
2425 #include <string.h>
2526 #include <time.h>
2627 #include <X11/extensions/shape.h>
@@ -641,7 +642,10 @@ client_message (XEvent *ev)
641642 case 32:
642643 data = Fmake_vector (rep_MAKE_INT(5), Qnil);
643644 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+ }
645649 break;
646650
647651 default: