Re: how to determine if a window has been entered/exited
- From: Olivier Fourdan <fourdan xfce org>
- To: Havoc Pennington <hp redhat com>
- Cc: gtk-devel-list gnome org
- Subject: Re: how to determine if a window has been entered/exited
- Date: 08 May 2003 23:34:06 +0200
Hi Havoc,
That's exactly the problem... Grab/ungrab generates enter/leave event
that I trash (usually) because they are mostly unneeded.
I don't know if GTK filters those "false" (by resulting of a pointer
grab/ungrab) enter/leave notify events or not...
Cheers,
Olivier.
On Thu, 2003-05-08 at 23:26, Havoc Pennington wrote:
> On Thu, May 08, 2003 at 11:16:03PM +0200, Matthias Clasen wrote:
> >
> > According to the X protocol reference, the toplevel should get a
> > LeaveNotify with mode Grab and detail Nonlinear when the grab activates.
> > Maybe gdk doesn't translate LeaveNotifys with mode != Normal into
> > CrossingEvents...
> >
>
> The problem is that you don't usually really want grabs to "count" -
> e.g. you don't want to hide the panel when you open a panel menu, and
> in a window manager with mouse focus you don't want to display the
> focused window as unfocused whenever the application grabs the mouse.
>
> So X is just really annoying here. There's no magic fix I know of.
>
> Havoc
> _______________________________________________
> gtk-devel-list mailing list
> gtk-devel-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-devel-list
--
Olivier Fourdan <fourdan xfce org>
http://www.xfce.org
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]