Mercurial > emacs
diff src/xterm.c @ 99407:c04fb0278b64
(handle_one_xevent): Don't let popup menus cause
mouse-autoselect-window related window switching. (Bug#1261)
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Thu, 06 Nov 2008 03:49:17 +0000 |
parents | 3f2f25d635e6 |
children | 122a33e0e881 |
line wrap: on
line diff
--- a/src/xterm.c Thu Nov 06 03:47:50 2008 +0000 +++ b/src/xterm.c Thu Nov 06 03:49:17 2008 +0000 @@ -6722,8 +6722,9 @@ if (f) { - /* Generate SELECT_WINDOW_EVENTs when needed. */ - if (!NILP (Vmouse_autoselect_window)) + /* Generate SELECT_WINDOW_EVENTs when needed. + Don't let popup menus influence things (bug#1261). */ + if (!NILP (Vmouse_autoselect_window) && !popup_activated ()) { Lisp_Object window;