Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
e1d05387
Commit
e1d05387
authored
Dec 06, 2000
by
Gerd Moellmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(coordinates_in_window): Check mouse on mode-line or
header-line first.
parent
46f0206a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
10 deletions
+15
-10
src/ChangeLog
src/ChangeLog
+3
-0
src/window.c
src/window.c
+12
-10
No files found.
src/ChangeLog
View file @
e1d05387
2000-12-06 Gerd Moellmann <gerd@gnu.org>
* window.c (coordinates_in_window): Check mouse on mode-line or
header-line first.
* alloc.c (Fgarbage_collect): Dox fix. Return a list as
advertized by the function documentation.
...
...
src/window.c
View file @
e1d05387
...
...
@@ -524,16 +524,6 @@ coordinates_in_window (w, x, y)
bottom_y = WINDOW_DISPLAY_BOTTOM_EDGE_PIXEL_Y (w);
}
/* Completely outside anything interesting? */
if
(
*
y
<
top_y
||
*
y
>=
bottom_y
||
*
x
<
(
left_x
-
flags_area_width
-
(
FRAME_LEFT_SCROLL_BAR_WIDTH
(
f
)
*
CANON_X_UNIT
(
f
)))
||
*
x
>
right_x
+
flags_area_width
)
return
ON_NOTHING
;
/* On the mode line or header line? If it's near the start of
the mode or header line of window that's has a horizontal
sibling, say it's on the vertical line. That's to be able
...
...
@@ -541,6 +531,7 @@ coordinates_in_window (w, x, y)
scroll bars. */
if (WINDOW_WANTS_MODELINE_P (w)
&& *y < bottom_y
&& *y >= bottom_y - CURRENT_MODE_LINE_HEIGHT (w))
{
if (!WINDOW_RIGHTMOST_P (w)
...
...
@@ -552,6 +543,7 @@ coordinates_in_window (w, x, y)
}
if (WINDOW_WANTS_HEADER_LINE_P (w)
&& *y >= top_y
&& *y < top_y + CURRENT_HEADER_LINE_HEIGHT (w))
{
if (!WINDOW_RIGHTMOST_P (w)
...
...
@@ -562,6 +554,16 @@ coordinates_in_window (w, x, y)
return ON_HEADER_LINE;
}
/* Completely outside anything interesting? */
if (*y < top_y
|| *y >= bottom_y
|| *x < (left_x
- flags_area_width
- (FRAME_LEFT_SCROLL_BAR_WIDTH (f)
* CANON_X_UNIT (f)))
|| *x > right_x + flags_area_width)
return ON_NOTHING;
if (FRAME_WINDOW_P (f))
{
if (!w->pseudo_window_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