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
63685b9d
Commit
63685b9d
authored
Apr 06, 2001
by
Gerd Moellmann
Browse files
(xmenu_show): Use FRAME_X_SCREEN_NUMBER.
parent
9d536124
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
src/ChangeLog
src/ChangeLog
+10
-0
src/xmenu.c
src/xmenu.c
+2
-4
No files found.
src/ChangeLog
View file @
63685b9d
2001-04-06 Gerd Moellmann <gerd@gnu.org>
* xfns.c (compute_tip_xy): Add parameters WIDTH and HEIGHT.
Make sure the tooltip is completely visible.
(x_make_gc): Use FRAME_X_SCREEN_NUMBER.
* xterm.h (FRAME_X_SCREEN_NUMBER): New macro.
* xmenu.c (xmenu_show): Use FRAME_X_SCREEN_NUMBER.
2001-04-06 Dave Love <fx@gnu.org>
* composite.c (update_compositions) <check_mask & CHECK_HEAD>: Fix
...
...
src/xmenu.c
View file @
63685b9d
...
...
@@ -2710,10 +2710,8 @@ xmenu_show (f, x, y, for_click, keymaps, title, error)
/* All set and ready to fly. */
XMenuRecompute
(
FRAME_X_DISPLAY
(
f
),
menu
);
dispwidth
=
DisplayWidth
(
FRAME_X_DISPLAY
(
f
),
XScreenNumberOfScreen
(
FRAME_X_SCREEN
(
f
)));
dispheight
=
DisplayHeight
(
FRAME_X_DISPLAY
(
f
),
XScreenNumberOfScreen
(
FRAME_X_SCREEN
(
f
)));
dispwidth
=
DisplayWidth
(
FRAME_X_DISPLAY
(
f
),
FRAME_X_SCREEN_NUMBER
(
f
));
dispheight
=
DisplayHeight
(
FRAME_X_DISPLAY
(
f
),
FRAME_X_SCREEN_NUMBER
(
f
));
x
=
min
(
x
,
dispwidth
);
y
=
min
(
y
,
dispheight
);
x
=
max
(
x
,
1
);
...
...
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