Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
3d970f28
Commit
3d970f28
authored
Mar 21, 2003
by
Kim F. Storm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Setup and use hand_cursor instead of cross_cursor.
parent
fa3c6b4d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
src/xfns.c
src/xfns.c
+8
-8
No files found.
src/xfns.c
View file @
3d970f28
...
...
@@ -1640,7 +1640,7 @@ x_set_mouse_color (f, arg, oldval)
{
struct x_output *x = f->output_data.x;
Display *dpy = FRAME_X_DISPLAY (f);
Cursor cursor, nontext_cursor, mode_cursor,
cross
_cursor;
Cursor cursor, nontext_cursor, mode_cursor,
hand
_cursor;
Cursor hourglass_cursor, horizontal_drag_cursor;
int count;
unsigned long pixel = x_decode_color (f, arg, BLACK_PIX_DEFAULT (f));
...
...
@@ -1703,11 +1703,11 @@ x_set_mouse_color (f, arg, oldval)
if (!NILP (Vx_sensitive_text_pointer_shape))
{
CHECK_NUMBER (Vx_sensitive_text_pointer_shape);
cross
_cursor
hand
_cursor
= XCreateFontCursor (dpy, XINT (Vx_sensitive_text_pointer_shape));
}
else
cross
_cursor = XCreateFontCursor (dpy, XC_hand2);
hand
_cursor = XCreateFontCursor (dpy, XC_hand2);
if (!NILP (Vx_window_horizontal_drag_shape))
{
...
...
@@ -1734,7 +1734,7 @@ x_set_mouse_color (f, arg, oldval)
XRecolorCursor (dpy, cursor, &fore_color, &back_color);
XRecolorCursor (dpy, nontext_cursor, &fore_color, &back_color);
XRecolorCursor (dpy, mode_cursor, &fore_color, &back_color);
XRecolorCursor (dpy,
cross
_cursor, &fore_color, &back_color);
XRecolorCursor (dpy,
hand
_cursor, &fore_color, &back_color);
XRecolorCursor (dpy, hourglass_cursor, &fore_color, &back_color);
XRecolorCursor (dpy, horizontal_drag_cursor, &fore_color, &back_color);
}
...
...
@@ -1762,10 +1762,10 @@ x_set_mouse_color (f, arg, oldval)
XFreeCursor (dpy, f->output_data.x->modeline_cursor);
x->modeline_cursor = mode_cursor;
if (
cross
_cursor != x->
cross
_cursor
&& x->
cross
_cursor != 0)
XFreeCursor (dpy, x->
cross
_cursor);
x->
cross
_cursor =
cross
_cursor;
if (
hand
_cursor != x->
hand
_cursor
&& x->
hand
_cursor != 0)
XFreeCursor (dpy, x->
hand
_cursor);
x->
hand
_cursor =
hand
_cursor;
if (horizontal_drag_cursor != x->horizontal_drag_cursor
&& x->horizontal_drag_cursor != 0)
...
...
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