Mercurial > emacs
comparison src/xmenu.c @ 62994:b83593f0515d
(popup_get_selection): Click not in menu deactivates menu.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 04 Jun 2005 18:05:28 +0000 |
parents | 0db5674a79de |
children | 6b334ce606ca 01137c1fdbe9 |
comparison
equal
deleted
inserted
replaced
62993:67de0f04e17e | 62994:b83593f0515d |
---|---|
1233 And make sure to deactivate for any ButtonRelease, | 1233 And make sure to deactivate for any ButtonRelease, |
1234 even if XtDispatchEvent doesn't do that. */ | 1234 even if XtDispatchEvent doesn't do that. */ |
1235 if (event.type == ButtonRelease | 1235 if (event.type == ButtonRelease |
1236 && dpyinfo->display == event.xbutton.display) | 1236 && dpyinfo->display == event.xbutton.display) |
1237 { | 1237 { |
1238 /* If the click is not on the menu, deactivate the menu. */ | |
1239 if (x_any_window_to_frame (dpyinfo, event.xexpose.window)) | |
1240 popup_activated_flag = 0; | |
1241 | |
1238 dpyinfo->grabbed &= ~(1 << event.xbutton.button); | 1242 dpyinfo->grabbed &= ~(1 << event.xbutton.button); |
1239 #ifdef USE_MOTIF /* Pretending that the event came from a | 1243 #ifdef USE_MOTIF /* Pretending that the event came from a |
1240 Btn1Down seems the only way to convince Motif to | 1244 Btn1Down seems the only way to convince Motif to |
1241 activate its callbacks; setting the XmNmenuPost | 1245 activate its callbacks; setting the XmNmenuPost |
1242 isn't working. --marcus@sysc.pdx.edu. */ | 1246 isn't working. --marcus@sysc.pdx.edu. */ |