diff options
| author | Stefan Monnier | 2010-12-10 19:13:08 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2010-12-10 19:13:08 -0500 |
| commit | 2c302df3a13236bfbf8ea1b771d13618fcda8d71 (patch) | |
| tree | f26dc9f22861dc37610de319d05255de058c221b /src/xterm.h | |
| parent | 0c747cb143fa227e78f350ac353d703f489209df (diff) | |
| parent | 175069efeb080517afefdd44a06f7a779ea8c25c (diff) | |
| download | emacs-2c302df3a13236bfbf8ea1b771d13618fcda8d71.tar.gz emacs-2c302df3a13236bfbf8ea1b771d13618fcda8d71.zip | |
Merge from trunk
Diffstat (limited to 'src/xterm.h')
| -rw-r--r-- | src/xterm.h | 55 |
1 files changed, 21 insertions, 34 deletions
diff --git a/src/xterm.h b/src/xterm.h index d884945f985..fbfb043601a 100644 --- a/src/xterm.h +++ b/src/xterm.h | |||
| @@ -190,36 +190,9 @@ struct x_display_info | |||
| 190 | /* Reusable Graphics Context for drawing a cursor in a non-default face. */ | 190 | /* Reusable Graphics Context for drawing a cursor in a non-default face. */ |
| 191 | GC scratch_cursor_gc; | 191 | GC scratch_cursor_gc; |
| 192 | 192 | ||
| 193 | /* These variables describe the range of text currently shown in its | 193 | /* Information about the range of text currently shown in |
| 194 | mouse-face, together with the window they apply to. As long as | 194 | mouse-face. */ |
| 195 | the mouse stays within this range, we need not redraw anything on | 195 | Mouse_HLInfo mouse_highlight; |
| 196 | its account. Rows and columns are glyph matrix positions in | ||
| 197 | MOUSE_FACE_WINDOW. */ | ||
| 198 | int mouse_face_beg_row, mouse_face_beg_col; | ||
| 199 | int mouse_face_beg_x, mouse_face_beg_y; | ||
| 200 | int mouse_face_end_row, mouse_face_end_col; | ||
| 201 | int mouse_face_end_x, mouse_face_end_y; | ||
| 202 | int mouse_face_past_end; | ||
| 203 | Lisp_Object mouse_face_window; | ||
| 204 | int mouse_face_face_id; | ||
| 205 | Lisp_Object mouse_face_overlay; | ||
| 206 | |||
| 207 | /* 1 if a mouse motion event came and we didn't handle it right away because | ||
| 208 | gc was in progress. */ | ||
| 209 | int mouse_face_deferred_gc; | ||
| 210 | |||
| 211 | /* FRAME and X, Y position of mouse when last checked for | ||
| 212 | highlighting. X and Y can be negative or out of range for the frame. */ | ||
| 213 | struct frame *mouse_face_mouse_frame; | ||
| 214 | int mouse_face_mouse_x, mouse_face_mouse_y; | ||
| 215 | |||
| 216 | /* Nonzero means defer mouse-motion highlighting. */ | ||
| 217 | int mouse_face_defer; | ||
| 218 | |||
| 219 | /* Nonzero means that the mouse highlight should not be shown. */ | ||
| 220 | int mouse_face_hidden; | ||
| 221 | |||
| 222 | int mouse_face_image_state; | ||
| 223 | 196 | ||
| 224 | char *x_id_name; | 197 | char *x_id_name; |
| 225 | 198 | ||
| @@ -297,7 +270,7 @@ struct x_display_info | |||
| 297 | Atom Xatom_Scrollbar; | 270 | Atom Xatom_Scrollbar; |
| 298 | 271 | ||
| 299 | /* Atom used in XEmbed client messages. */ | 272 | /* Atom used in XEmbed client messages. */ |
| 300 | Atom Xatom_XEMBED; | 273 | Atom Xatom_XEMBED, Xatom_XEMBED_INFO;; |
| 301 | 274 | ||
| 302 | /* The frame (if any) which has the X window that has keyboard focus. | 275 | /* The frame (if any) which has the X window that has keyboard focus. |
| 303 | Zero if none. This is examined by Ffocus_frame in xfns.c. Note | 276 | Zero if none. This is examined by Ffocus_frame in xfns.c. Note |
| @@ -359,15 +332,17 @@ struct x_display_info | |||
| 359 | 332 | ||
| 360 | /* Extended window manager hints, Atoms supported by the window manager and | 333 | /* Extended window manager hints, Atoms supported by the window manager and |
| 361 | atoms for settig the window type. */ | 334 | atoms for settig the window type. */ |
| 335 | Atom Xatom_net_supported, Xatom_net_supporting_wm_check; | ||
| 362 | Atom *net_supported_atoms; | 336 | Atom *net_supported_atoms; |
| 363 | int nr_net_supported_atoms; | 337 | int nr_net_supported_atoms; |
| 364 | Window net_supported_window; | 338 | Window net_supported_window; |
| 365 | Atom Xatom_net_window_type, Xatom_net_window_type_tooltip; | 339 | Atom Xatom_net_window_type, Xatom_net_window_type_tooltip; |
| 340 | Atom Xatom_net_active_window; | ||
| 366 | 341 | ||
| 367 | /* Atoms dealing with maximization and fullscreen */ | 342 | /* Atoms dealing with EWMH (i.e. _NET_...) */ |
| 368 | Atom Xatom_net_wm_state, Xatom_net_wm_state_fullscreen_atom, | 343 | Atom Xatom_net_wm_state, Xatom_net_wm_state_fullscreen, |
| 369 | Xatom_net_wm_state_maximized_horz, Xatom_net_wm_state_maximized_vert, | 344 | Xatom_net_wm_state_maximized_horz, Xatom_net_wm_state_maximized_vert, |
| 370 | Xatom_net_wm_state_sticky; | 345 | Xatom_net_wm_state_sticky, Xatom_net_frame_extents; |
| 371 | 346 | ||
| 372 | /* XSettings atoms and windows. */ | 347 | /* XSettings atoms and windows. */ |
| 373 | Atom Xatom_xsettings_sel, Xatom_xsettings_prop, Xatom_xsettings_mgr; | 348 | Atom Xatom_xsettings_sel, Xatom_xsettings_prop, Xatom_xsettings_mgr; |
| @@ -375,6 +350,11 @@ struct x_display_info | |||
| 375 | 350 | ||
| 376 | /* Frame name and icon name */ | 351 | /* Frame name and icon name */ |
| 377 | Atom Xatom_net_wm_name, Xatom_net_wm_icon_name; | 352 | Atom Xatom_net_wm_name, Xatom_net_wm_icon_name; |
| 353 | /* Frame opacity */ | ||
| 354 | Atom Xatom_net_wm_window_opacity; | ||
| 355 | |||
| 356 | /* SM */ | ||
| 357 | Atom Xatom_SM_CLIENT_ID; | ||
| 378 | }; | 358 | }; |
| 379 | 359 | ||
| 380 | #ifdef HAVE_X_I18N | 360 | #ifdef HAVE_X_I18N |
| @@ -1038,6 +1018,13 @@ extern void x_handle_selection_notify (XSelectionEvent *); | |||
| 1038 | extern void x_handle_selection_event (struct input_event *); | 1018 | extern void x_handle_selection_event (struct input_event *); |
| 1039 | extern void x_clear_frame_selections (struct frame *); | 1019 | extern void x_clear_frame_selections (struct frame *); |
| 1040 | 1020 | ||
| 1021 | extern void x_send_client_event (Lisp_Object display, | ||
| 1022 | Lisp_Object dest, | ||
| 1023 | Lisp_Object from, | ||
| 1024 | Atom message_type, | ||
| 1025 | Lisp_Object format, | ||
| 1026 | Lisp_Object values); | ||
| 1027 | |||
| 1041 | extern int x_handle_dnd_message (struct frame *, | 1028 | extern int x_handle_dnd_message (struct frame *, |
| 1042 | XClientMessageEvent *, | 1029 | XClientMessageEvent *, |
| 1043 | struct x_display_info *, | 1030 | struct x_display_info *, |