diff options
Diffstat (limited to 'src/xterm.h')
| -rw-r--r-- | src/xterm.h | 36 |
1 files changed, 7 insertions, 29 deletions
diff --git a/src/xterm.h b/src/xterm.h index 723550c57c4..883a249629d 100644 --- a/src/xterm.h +++ b/src/xterm.h | |||
| @@ -20,8 +20,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 20 | #ifndef XTERM_H | 20 | #ifndef XTERM_H |
| 21 | #define XTERM_H | 21 | #define XTERM_H |
| 22 | 22 | ||
| 23 | #include "dispextern.h" | ||
| 24 | |||
| 25 | #include <X11/Xlib.h> | 23 | #include <X11/Xlib.h> |
| 26 | #include <X11/cursorfont.h> | 24 | #include <X11/cursorfont.h> |
| 27 | 25 | ||
| @@ -73,14 +71,13 @@ typedef GtkWidget *xt_or_gtk_widget; | |||
| 73 | #define USE_GTK_TOOLTIP | 71 | #define USE_GTK_TOOLTIP |
| 74 | #endif | 72 | #endif |
| 75 | 73 | ||
| 76 | |||
| 77 | /* Bookkeeping to distinguish X versions. */ | ||
| 78 | |||
| 79 | |||
| 80 | #ifdef HAVE_X_I18N | 74 | #ifdef HAVE_X_I18N |
| 81 | #include <X11/Xlocale.h> | 75 | #include <X11/Xlocale.h> |
| 82 | #endif | 76 | #endif |
| 83 | 77 | ||
| 78 | #include "dispextern.h" | ||
| 79 | #include "termhooks.h" | ||
| 80 | |||
| 84 | #define BLACK_PIX_DEFAULT(f) BlackPixel (FRAME_X_DISPLAY (f), \ | 81 | #define BLACK_PIX_DEFAULT(f) BlackPixel (FRAME_X_DISPLAY (f), \ |
| 85 | XScreenNumberOfScreen (FRAME_X_SCREEN (f))) | 82 | XScreenNumberOfScreen (FRAME_X_SCREEN (f))) |
| 86 | #define WHITE_PIX_DEFAULT(f) WhitePixel (FRAME_X_DISPLAY (f), \ | 83 | #define WHITE_PIX_DEFAULT(f) WhitePixel (FRAME_X_DISPLAY (f), \ |
| @@ -141,9 +138,6 @@ struct x_display_info | |||
| 141 | /* The generic display parameters corresponding to this X display. */ | 138 | /* The generic display parameters corresponding to this X display. */ |
| 142 | struct terminal *terminal; | 139 | struct terminal *terminal; |
| 143 | 140 | ||
| 144 | /* Connection number (normally a file descriptor number). */ | ||
| 145 | int connection; | ||
| 146 | |||
| 147 | /* This says how to access this display in Xlib. */ | 141 | /* This says how to access this display in Xlib. */ |
| 148 | Display *display; | 142 | Display *display; |
| 149 | 143 | ||
| @@ -409,9 +403,6 @@ extern bool x_display_ok (const char *); | |||
| 409 | 403 | ||
| 410 | extern void select_visual (struct x_display_info *); | 404 | extern void select_visual (struct x_display_info *); |
| 411 | 405 | ||
| 412 | |||
| 413 | struct font; | ||
| 414 | |||
| 415 | /* Each X frame object points to its own struct x_output object | 406 | /* Each X frame object points to its own struct x_output object |
| 416 | in the output_data.x field. The x_output structure contains | 407 | in the output_data.x field. The x_output structure contains |
| 417 | the information that is specific to X windows. */ | 408 | the information that is specific to X windows. */ |
| @@ -632,11 +623,6 @@ struct x_output | |||
| 632 | int move_offset_top; | 623 | int move_offset_top; |
| 633 | int move_offset_left; | 624 | int move_offset_left; |
| 634 | 625 | ||
| 635 | /* The frame's left/top offsets before we call XMoveWindow. See | ||
| 636 | x_check_expected_move. */ | ||
| 637 | int left_before_move; | ||
| 638 | int top_before_move; | ||
| 639 | |||
| 640 | /* Non-zero if _NET_WM_STATE_HIDDEN is set for this frame. */ | 626 | /* Non-zero if _NET_WM_STATE_HIDDEN is set for this frame. */ |
| 641 | unsigned net_wm_state_hidden_seen : 1; | 627 | unsigned net_wm_state_hidden_seen : 1; |
| 642 | }; | 628 | }; |
| @@ -812,8 +798,8 @@ struct scroll_bar | |||
| 812 | /* If the scroll bar handle is currently being dragged by the user, | 798 | /* If the scroll bar handle is currently being dragged by the user, |
| 813 | this is the number of pixels from the top of the handle to the | 799 | this is the number of pixels from the top of the handle to the |
| 814 | place where the user grabbed it. If the handle isn't currently | 800 | place where the user grabbed it. If the handle isn't currently |
| 815 | being dragged, this is Qnil. */ | 801 | being dragged, this is -1. */ |
| 816 | Lisp_Object dragging; | 802 | int dragging; |
| 817 | 803 | ||
| 818 | /* 1 if the background of the fringe that is adjacent to a scroll | 804 | /* 1 if the background of the fringe that is adjacent to a scroll |
| 819 | bar is extended to the gap between the fringe and the bar. */ | 805 | bar is extended to the gap between the fringe and the bar. */ |
| @@ -919,14 +905,6 @@ struct selection_input_event | |||
| 919 | #define SELECTION_EVENT_TIME(eventp) \ | 905 | #define SELECTION_EVENT_TIME(eventp) \ |
| 920 | (((struct selection_input_event *) (eventp))->time) | 906 | (((struct selection_input_event *) (eventp))->time) |
| 921 | 907 | ||
| 922 | |||
| 923 | struct window; | ||
| 924 | struct glyph_matrix; | ||
| 925 | struct frame; | ||
| 926 | struct input_event; | ||
| 927 | struct face; | ||
| 928 | struct image; | ||
| 929 | |||
| 930 | /* From xselect.c. */ | 908 | /* From xselect.c. */ |
| 931 | 909 | ||
| 932 | void x_handle_selection_notify (XSelectionEvent *); | 910 | void x_handle_selection_notify (XSelectionEvent *); |
| @@ -968,7 +946,7 @@ extern bool x_alloc_lighter_color_for_widget (Widget, Display *, Colormap, | |||
| 968 | #endif | 946 | #endif |
| 969 | extern bool x_alloc_nearest_color (struct frame *, Colormap, XColor *); | 947 | extern bool x_alloc_nearest_color (struct frame *, Colormap, XColor *); |
| 970 | extern void x_query_color (struct frame *f, XColor *); | 948 | extern void x_query_color (struct frame *f, XColor *); |
| 971 | extern void x_clear_area (Display *, Window, int, int, int, int, int); | 949 | extern void x_clear_area (Display *, Window, int, int, int, int); |
| 972 | #if defined HAVE_MENUS && !defined USE_X_TOOLKIT && !defined USE_GTK | 950 | #if defined HAVE_MENUS && !defined USE_X_TOOLKIT && !defined USE_GTK |
| 973 | extern void x_mouse_leave (struct x_display_info *); | 951 | extern void x_mouse_leave (struct x_display_info *); |
| 974 | #endif | 952 | #endif |