diff options
| author | Jason Rumney | 2000-12-02 21:02:27 +0000 |
|---|---|---|
| committer | Jason Rumney | 2000-12-02 21:02:27 +0000 |
| commit | 4694d76242f0c188a48c987f4437ac8299ec3877 (patch) | |
| tree | d36364c672b281b440fdf4fe10a5fb2829c3ed8b /src | |
| parent | 27ce741e2b6f27e98538cceb5453ce9f4f6ac465 (diff) | |
| download | emacs-4694d76242f0c188a48c987f4437ac8299ec3877.tar.gz emacs-4694d76242f0c188a48c987f4437ac8299ec3877.zip | |
(Fx_create_frame): Reintroduce the call to face-set-after-frame-defaults.
(Vx_window_horizontal_drag_shape): New variable.
(syms_of_xfns): DEFVAR_LISP it.
(x_set_mouse_color): Create frame's horizontal_drag_cursor [not enabled].
Diffstat (limited to 'src')
| -rw-r--r-- | src/w32fns.c | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/src/w32fns.c b/src/w32fns.c index c2994346eaa..9fe4a451b39 100644 --- a/src/w32fns.c +++ b/src/w32fns.c | |||
| @@ -154,7 +154,7 @@ int display_busy_cursor_p; | |||
| 154 | over text or in the modeline. */ | 154 | over text or in the modeline. */ |
| 155 | 155 | ||
| 156 | Lisp_Object Vx_pointer_shape, Vx_nontext_pointer_shape, Vx_mode_pointer_shape; | 156 | Lisp_Object Vx_pointer_shape, Vx_nontext_pointer_shape, Vx_mode_pointer_shape; |
| 157 | Lisp_Object Vx_busy_pointer_shape; | 157 | Lisp_Object Vx_busy_pointer_shape, Vx_window_horizontal_drag_shape; |
| 158 | 158 | ||
| 159 | /* The shape when over mouse-sensitive text. */ | 159 | /* The shape when over mouse-sensitive text. */ |
| 160 | 160 | ||
| @@ -2089,6 +2089,17 @@ x_set_mouse_color (f, arg, oldval) | |||
| 2089 | else | 2089 | else |
| 2090 | cross_cursor = XCreateFontCursor (FRAME_W32_DISPLAY (f), XC_crosshair); | 2090 | cross_cursor = XCreateFontCursor (FRAME_W32_DISPLAY (f), XC_crosshair); |
| 2091 | 2091 | ||
| 2092 | if (!NILP (Vx_window_horizontal_drag_shape)) | ||
| 2093 | { | ||
| 2094 | CHECK_NUMBER (Vx_window_horizontal_drag_shape, 0); | ||
| 2095 | horizontal_drag_cursor | ||
| 2096 | = XCreateFontCursor (FRAME_X_DISPLAY (f), | ||
| 2097 | XINT (Vx_window_horizontal_drag_shape)); | ||
| 2098 | } | ||
| 2099 | else | ||
| 2100 | horizontal_drag_cursor | ||
| 2101 | = XCreateFontCursor (FRAME_X_DISPLAY (f), XC_sb_h_double_arrow); | ||
| 2102 | |||
| 2092 | /* Check and report errors with the above calls. */ | 2103 | /* Check and report errors with the above calls. */ |
| 2093 | x_check_errors (FRAME_W32_DISPLAY (f), "can't set cursor shape: %s"); | 2104 | x_check_errors (FRAME_W32_DISPLAY (f), "can't set cursor shape: %s"); |
| 2094 | x_uncatch_errors (FRAME_W32_DISPLAY (f), count); | 2105 | x_uncatch_errors (FRAME_W32_DISPLAY (f), count); |
| @@ -5386,6 +5397,13 @@ This function is an internal primitive--use `make-frame' instead.") | |||
| 5386 | x_wm_set_size_hint (f, window_prompting, 0); | 5397 | x_wm_set_size_hint (f, window_prompting, 0); |
| 5387 | UNBLOCK_INPUT; | 5398 | UNBLOCK_INPUT; |
| 5388 | 5399 | ||
| 5400 | /* Set up faces after all frame parameters are known. This call | ||
| 5401 | also merges in face attributes specified for new frames. If we | ||
| 5402 | don't do this, the `menu' face for instance won't have the right | ||
| 5403 | colors, and the menu bar won't appear in the specified colors for | ||
| 5404 | new frames. */ | ||
| 5405 | call1 (Qface_set_after_frame_default, frame); | ||
| 5406 | |||
| 5389 | /* Make the window appear on the frame and enable display, unless | 5407 | /* Make the window appear on the frame and enable display, unless |
| 5390 | the caller says not to. However, with explicit parent, Emacs | 5408 | the caller says not to. However, with explicit parent, Emacs |
| 5391 | cannot control visibility, so don't try. */ | 5409 | cannot control visibility, so don't try. */ |
| @@ -13360,6 +13378,13 @@ This variable takes effect when you create a new frame\n\ | |||
| 13360 | or when you set the mouse color."); | 13378 | or when you set the mouse color."); |
| 13361 | Vx_sensitive_text_pointer_shape = Qnil; | 13379 | Vx_sensitive_text_pointer_shape = Qnil; |
| 13362 | 13380 | ||
| 13381 | DEFVAR_LISP ("x-window-horizontal-drag-cursor", | ||
| 13382 | &Vx_window_horizontal_drag_shape, | ||
| 13383 | "Pointer shape to use for indicating a window can be dragged horizontally.\n\ | ||
| 13384 | This variable takes effect when you create a new frame\n\ | ||
| 13385 | or when you set the mouse color."); | ||
| 13386 | Vx_window_horizontal_drag_shape = Qnil; | ||
| 13387 | |||
| 13363 | DEFVAR_LISP ("x-cursor-fore-pixel", &Vx_cursor_fore_pixel, | 13388 | DEFVAR_LISP ("x-cursor-fore-pixel", &Vx_cursor_fore_pixel, |
| 13364 | "A string indicating the foreground color of the cursor box."); | 13389 | "A string indicating the foreground color of the cursor box."); |
| 13365 | Vx_cursor_fore_pixel = Qnil; | 13390 | Vx_cursor_fore_pixel = Qnil; |