Re: Event for GtkWindow "focus"?
- From: Havoc Pennington <hp redhat com>
- To: Robert Roebling <Robert Roebling t-online de>
- Cc: gtk <gtk-devel-list gnome org>
- Subject: Re: Event for GtkWindow "focus"?
- Date: Wed, 20 Nov 2002 17:24:37 -0500
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.
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]