Re: Visual bell



On Tue, 2002-10-22 at 00:54, Jody Goldberg wrote:
... but it appears that GTK+ keeps XKB events to itself, by
> > > and large, and thus they are not available to a GdkFilterFunc (see
> > > gdkevents-x11.c).  Perhaps you and Owen could agree to a small GDK patch
> > > that would propagate XKB events to filter-clients, in which case you
> > > could trap them in Metacity's filterfunc.  Otherwise, you will have to
> > > open your own connection to the XServer :-(
> > 
> > It looks OK to me? Owen was this changed in 2.1.x or something?
> 
> huh?
> 
> gtk filter functions work smoothly with XKB events in 2.0 and 2.1.

OK - a more likely reason for failure is that these events usually have
xany->window == NULL.  I believe that gtk+ throws these out if they are
not caught by _gdk_default_filters (which I think it where the "global"
filter funcs go).  So I think my worry about multiple notifications is
not well founded; using the global gdk filter mechanism will probably
work fine. 

thanks for the catch Jody; correct me if I'm wrong, Owen.

-Bill




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]