Re: how to determine if a window has been entered/exited
- From: Matthias Clasen <maclas gmx de>
- To: gtk-devel-list gnome org
- Subject: Re: how to determine if a window has been entered/exited
- Date: 08 May 2003 23:16:03 +0200
On Thu, 2003-05-08 at 22:57, Olivier Fourdan wrote:
> Hey Brian,
>
> I'm really glad that helped :)
>
> There light be, however, a problem with that impl. I could not find a
> fix myself.
>
> Actually the code I sent comes from my taskbar for xfce4. It's used for
> the "autohide" stuff.
>
> Unfortunately, it happen that this particular code doesn't work when a
> menu that is wider than the window is opened. The menu grabs the
> keyboard/mouse and if the user clicks on a menu item outside the
> toplevel window, then the toplevel window doesn't receive the leave
> notify event...
>
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...
Matthias
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]