GTK+ vim --socketid update
- For those cutting edge vimmers who may be interested in the
new --socketid option, it looks as if it may not work correctly
if you're using older GTK+ libraries that 1.2.10 (I was using
1.2.8). And even then, you may need the following patch which
I've been given.
I don't know that /it/ in itself helps vim run as a plugin,
but I was told that it fixes 'a remaining issue' in 1.2.10.
When I've built/installed 1.2.10, I'll try it again :-)
--- gtk+-1.2.10/gtk/gtkwindow.c.focus Fri Mar 9 18:39:16 2001
+++ gtk+-1.2.10/gtk/gtkwindow.c Thu Jul 5 10:34:00 2001
@@ -985,7 +985,13 @@
- if (xev->xcrossing.detail != NotifyInferior &&
+ /* We only track the actual destination of keyboard
events for real
+ * toplevels, not for embedded toplevels such as GtkPlug.
The reason for
+ * this is that GtkPlug redirects events so the widget
may effectively not
+ * have the focus even if it actually has the focus.
+ if (gdk_window_get_parent (GTK_WIDGET (window)->window)
== GDK_ROOT_PARENT () &&
+ xev->xcrossing.detail != NotifyInferior &&
xev->xcrossing.focus && !window->window_has_focus)
window->window_has_pointer_focus = (xev->xany.type ==
EnterNotify) ? TRUE : FALSE;
=================- http://www.thalesgroup.com/ -================
Neil Bird Principal Engineer |
work - mailto:neil.bird@... | $> cd /pub
personal - mailto:neil@... | $> more beer