pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: tkabber doesn't work with tk-8.4.18



> IMHO it whould be nice to patch tk-8.4.18 for pkgsrc-2008Q2 branch.
> If you have one, I hope pkgsrc developer will apply it.
> Or at least I apply it for in my own pkgsrc tree :)

The next patch (as suggested by the tk developers) should suffice to allow
tk to work with the latest Xorg . Dunno if you have to recompile any binary
extension. FWIW, tkabber don't use any compiled tk extension which
requires event handling, none at least in pkgsrc. It will use tktray located
in http://sw4me.com/wiki/Tktray to allow docking in the system tray, and is
IIRC the only compiled tk extension tkabber use which bind to events.

Please try the patch and let me know if it works.

--- generic/tk.h.orig   2008-07-12 13:38:44.000000000 -0300
+++ generic/tk.h        2008-07-12 14:01:07.000000000 -0300
@@ -627,17 +627,16 @@
  *---------------------------------------------------------------------------
  */

-#define VirtualEvent       (LASTEvent)
-#define ActivateNotify     (LASTEvent + 1)
-#define DeactivateNotify    (LASTEvent + 2)
-#define MouseWheelEvent     (LASTEvent + 3)
-#define TK_LASTEVENT       (LASTEvent + 4)
+#define VirtualEvent       (MappingNotify + 1)
+#define ActivateNotify     (MappingNotify + 2)
+#define DeactivateNotify    (MappingNotify + 3)
+#define MouseWheelEvent     (MappingNotify + 4)
+#define TK_LASTEVENT       (MappingNotify + 5)

 #define MouseWheelMask     (1L << 28)

 #define ActivateMask       (1L << 29)
 #define VirtualEventMask    (1L << 30)
-#define TK_LASTEVENT       (LASTEvent + 4)

 /*
  * A virtual event shares most of its fields with the XKeyEvent and


Regards
Emiliano


Home | Main Index | Thread Index | Old Index