Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
9f9e1ff8
Commit
9f9e1ff8
authored
Aug 14, 1994
by
Richard M. Stallman
Browse files
(xmenu_show): Unconditionally update x_mouse_grabbed and Vmouse_depressed.
parent
6674f749
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
src/xmenu.c
src/xmenu.c
+12
-10
No files found.
src/xmenu.c
View file @
9f9e1ff8
...
...
@@ -1655,16 +1655,18 @@ xmenu_show (f, x, y, menubarp, keymaps, title, error)
if
(
event
.
type
==
ButtonRelease
)
{
XtDispatchEvent
(
&
event
);
if
(
!
menubarp
)
{
/* Do the work of construct_mouse_click since it can't
be called. Initially, the popup menu has been called
from a ButtonPress in the edit_widget. Then the mouse
has been set to grabbed. Reset it now. */
x_mouse_grabbed
&=
~
(
1
<<
event
.
xbutton
.
button
);
if
(
!
x_mouse_grabbed
)
Vmouse_depressed
=
Qnil
;
}
/* Do the work of construct_mouse_click since it can't
be called. Initially, the popup menu has been called
from a ButtonPress in the edit_widget. Then the mouse
has been set to grabbed. Reset it now. */
x_mouse_grabbed
&=
~
(
1
<<
event
.
xbutton
.
button
);
if
(
!
x_mouse_grabbed
)
Vmouse_depressed
=
Qnil
;
/* If we release the button soon without selecting anything,
stay in the loop--that is, leave the menu posted.
Otherwise, exit this loop and thus pop down the menu. */
if
(
!
(
menu_item_selection
==
0
&&
!
next_release_must_exit
&&
(((
XButtonEvent
*
)
(
&
event
))
->
time
-
last_event_timestamp
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment