Re: Event for GtkWindow "focus"?



Hey,

On Thu, 2002-11-21 at 11:24, Havoc Pennington wrote:
> On Wed, Nov 20, 2002 at 11:14:31PM +0100, Robert Roebling wrote:
> > 
> > I know about the "focus_in" and "focus_out"
> > events, but they can fail. If you e.g. have
> > a GtkCombobox or a GtkOptionMenu control
> > in your dialog and you want to select an
> > item in one of those control, a small window
> > will shortly appear. This window uses the
> > "override/redirect" style, but still gets
> > the focus and the dialog will lose the
> > focus, i.e. it will get a focus_out event.
> 
> The WM is also using focus_in/focus_out events. The trick is to ignore
> events which are caused by grabs. In Xlib this is
> NotifyGrab/NotifyUngrab, I'm not sure how/if it gets translated to
> GDK.

	No, it doesn't get translated to GDK. I logged
a bug about this, but never got around to providing
more details for Owen:

http://bugzilla.gnome.org/show_bug.cgi?id=89179

Good Luck,
Mark.




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