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
d35cf493
Commit
d35cf493
authored
Sep 25, 1994
by
Paul Reilly
Browse files
*** empty log message ***
parent
3beeedfe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
7 deletions
+16
-7
lwlib/xlwmenu.c
lwlib/xlwmenu.c
+16
-7
No files found.
lwlib/xlwmenu.c
View file @
d35cf493
...
...
@@ -30,6 +30,8 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include <X11/bitmaps/gray>
#include "xlwmenuP.h"
static
int
disable_add_grab
,
disable_grab_pointer
;
static
int
pointer_grabbed
;
static
XEvent
menu_post_event
;
...
...
@@ -1446,7 +1448,8 @@ pop_up_menu (mw, event)
{
XEvent
*
ev
=
(
XEvent
*
)
event
;
XtAddGrab
((
Widget
)
mw
,
True
,
True
);
if
(
!
disable_add_grab
)
XtAddGrab
((
Widget
)
mw
,
True
,
True
);
/* notes the absolute position of the menubar window */
mw
->
menu
.
windows
[
0
].
x
=
ev
->
xmotion
.
x_root
-
ev
->
xmotion
.
x
;
...
...
@@ -1456,12 +1459,18 @@ pop_up_menu (mw, event)
#ifdef emacs
x_catch_errors
();
#endif
XtGrabPointer
((
Widget
)
mw
,
False
,
(
PointerMotionMask
|
PointerMotionHintMask
|
ButtonReleaseMask
|
ButtonPressMask
),
GrabModeAsync
,
GrabModeAsync
,
None
,
mw
->
menu
.
cursor_shape
,
event
->
time
);
pointer_grabbed
=
1
;
if
(
!
disable_grab_pointer
)
{
XtGrabPointer
((
Widget
)
mw
,
False
,
(
PointerMotionMask
|
PointerMotionHintMask
|
ButtonReleaseMask
|
ButtonPressMask
),
GrabModeAsync
,
GrabModeAsync
,
None
,
mw
->
menu
.
cursor_shape
,
event
->
time
);
pointer_grabbed
=
1
;
}
#ifdef emacs
if
(
x_had_errors_p
())
{
...
...
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