Re: Event for GtkWindow "focus"?



  Hi again,

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.
But the window manager does NOT change the
colour of the dialog's title bar because
it doesn't hide the dialog under another
dialog (GtkWindow).
When you then select on item in a combobox,
the small transient window will disappear
again and the dialog will get a focus_in
event (which I don't want to get).


Tristan Van Berkom wrote:

> the "focus-in-event" and "focus-out-event" signals
> are emited on the GtkWidget Class.
> 
> this is independant of any WM.
>
>
> 
> Robert Roebling wrote:
> > 
> > under both GTK 1.2 and GTK 2.0, I would like to
> > know (get notified about) which GtkWindow is
> > currently "active" or "focussed" or whatever
> > you call it, basically what the WM tells you
> > by changing the title bar of a Window. (If
> > a dialog comes up, the title bar of the original
> > window will e.g. turn grey and the title bar
> > of the new dialog will be e.g. blue or better
> > visible.) Does the WM inform the app in some
> > way about which window gets the focus or gets
> > activated?
> > 
> > Thanks for any hint,
> > 
> >   Robert
> > 
> > --
> > Robert Roebling, MD
> <robert roebling medizin uni-ulm de>
> > _______________________________________________
> > gtk-devel-list mailing list
> > gtk-devel-list gnome org
> > http://mail.gnome.org/mailman/listinfo/gtk-devel-list
> 
-- 
Robert Roebling, MD <robert roebling medizin uni-ulm de>



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