Subject: Re: bug#1261: 23.0.60; diary-insert-entry and mouse-autoselect-window

From: martin rudalics <[email-masked]>
Date: Tue, 04 Nov 2008 08:36:00 +0100

> So then I just printed XWINDOW(last_window) to stderr.
 >
 > It seems that the GTK toolkit associates a popup menu with the topmost
 > window in a frame, irrespective of which window the menu actually lies
 > in front of.

Would it help to check popup_activated, like

                 if (WINDOWP (window)
		    && !popup_activated ()
		    && !EQ (window, last_window)
		    && !EQ (window, selected_window)

in handle_one_xevent?

martin