diff options
Diffstat (limited to 'src/xterm.h')
| -rw-r--r-- | src/xterm.h | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/src/xterm.h b/src/xterm.h index a4767361bb3..86daa7bd27e 100644 --- a/src/xterm.h +++ b/src/xterm.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Definitions and headers for communication with X protocol. | 1 | /* Definitions and headers for communication with X protocol. |
| 2 | Copyright (C) 1989, 1993-1994, 1998-2011 Free Software Foundation, Inc. | 2 | Copyright (C) 1989, 1993-1994, 1998-2012 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
| @@ -326,11 +326,11 @@ struct x_display_info | |||
| 326 | 326 | ||
| 327 | /* Atoms that are drag and drop atoms */ | 327 | /* Atoms that are drag and drop atoms */ |
| 328 | Atom *x_dnd_atoms; | 328 | Atom *x_dnd_atoms; |
| 329 | size_t x_dnd_atoms_size; | 329 | ptrdiff_t x_dnd_atoms_size; |
| 330 | size_t x_dnd_atoms_length; | 330 | ptrdiff_t x_dnd_atoms_length; |
| 331 | 331 | ||
| 332 | /* Extended window manager hints, Atoms supported by the window manager and | 332 | /* Extended window manager hints, Atoms supported by the window manager and |
| 333 | atoms for settig the window type. */ | 333 | atoms for setting the window type. */ |
| 334 | Atom Xatom_net_supported, Xatom_net_supporting_wm_check; | 334 | Atom Xatom_net_supported, Xatom_net_supporting_wm_check; |
| 335 | Atom *net_supported_atoms; | 335 | Atom *net_supported_atoms; |
| 336 | int nr_net_supported_atoms; | 336 | int nr_net_supported_atoms; |
| @@ -341,7 +341,8 @@ struct x_display_info | |||
| 341 | /* Atoms dealing with EWMH (i.e. _NET_...) */ | 341 | /* Atoms dealing with EWMH (i.e. _NET_...) */ |
| 342 | Atom Xatom_net_wm_state, Xatom_net_wm_state_fullscreen, | 342 | Atom Xatom_net_wm_state, Xatom_net_wm_state_fullscreen, |
| 343 | Xatom_net_wm_state_maximized_horz, Xatom_net_wm_state_maximized_vert, | 343 | Xatom_net_wm_state_maximized_horz, Xatom_net_wm_state_maximized_vert, |
| 344 | Xatom_net_wm_state_sticky, Xatom_net_frame_extents; | 344 | Xatom_net_wm_state_sticky, Xatom_net_wm_state_hidden, |
| 345 | Xatom_net_frame_extents; | ||
| 345 | 346 | ||
| 346 | /* XSettings atoms and windows. */ | 347 | /* XSettings atoms and windows. */ |
| 347 | Atom Xatom_xsettings_sel, Xatom_xsettings_prop, Xatom_xsettings_mgr; | 348 | Atom Xatom_xsettings_sel, Xatom_xsettings_prop, Xatom_xsettings_mgr; |
| @@ -631,6 +632,9 @@ struct x_output | |||
| 631 | x_check_expected_move. */ | 632 | x_check_expected_move. */ |
| 632 | int left_before_move; | 633 | int left_before_move; |
| 633 | int top_before_move; | 634 | int top_before_move; |
| 635 | |||
| 636 | /* Non-zero if _NET_WM_STATE_HIDDEN is set for this frame. */ | ||
| 637 | int net_wm_state_hidden_seen; | ||
| 634 | }; | 638 | }; |
| 635 | 639 | ||
| 636 | #define No_Cursor (None) | 640 | #define No_Cursor (None) |
| @@ -639,7 +643,7 @@ enum | |||
| 639 | { | 643 | { |
| 640 | /* Values for focus_state, used as bit mask. | 644 | /* Values for focus_state, used as bit mask. |
| 641 | EXPLICIT means we received a FocusIn for the frame and know it has | 645 | EXPLICIT means we received a FocusIn for the frame and know it has |
| 642 | the focus. IMPLICIT means we recevied an EnterNotify and the frame | 646 | the focus. IMPLICIT means we received an EnterNotify and the frame |
| 643 | may have the focus if no window manager is running. | 647 | may have the focus if no window manager is running. |
| 644 | FocusOut and LeaveNotify clears EXPLICIT/IMPLICIT. */ | 648 | FocusOut and LeaveNotify clears EXPLICIT/IMPLICIT. */ |
| 645 | FOCUS_NONE = 0, | 649 | FOCUS_NONE = 0, |
| @@ -682,7 +686,7 @@ enum | |||
| 682 | #define GDK_WINDOW_XID(w) GDK_WINDOW_XWINDOW (w) | 686 | #define GDK_WINDOW_XID(w) GDK_WINDOW_XWINDOW (w) |
| 683 | #define DEFAULT_GDK_DISPLAY() GDK_DISPLAY () | 687 | #define DEFAULT_GDK_DISPLAY() GDK_DISPLAY () |
| 684 | #define gtk_widget_get_preferred_size(a, ign, b) \ | 688 | #define gtk_widget_get_preferred_size(a, ign, b) \ |
| 685 | gtk_widget_size_request(a, b) | 689 | gtk_widget_size_request (a, b) |
| 686 | #endif | 690 | #endif |
| 687 | 691 | ||
| 688 | #define GTK_WIDGET_TO_X_WIN(w) \ | 692 | #define GTK_WIDGET_TO_X_WIN(w) \ |
| @@ -955,14 +959,15 @@ XrmDatabase x_load_resources (Display *, const char *, const char *, | |||
| 955 | extern int x_text_icon (struct frame *, const char *); | 959 | extern int x_text_icon (struct frame *, const char *); |
| 956 | extern int x_bitmap_icon (struct frame *, Lisp_Object); | 960 | extern int x_bitmap_icon (struct frame *, Lisp_Object); |
| 957 | extern void x_catch_errors (Display *); | 961 | extern void x_catch_errors (Display *); |
| 958 | extern void x_check_errors (Display *, const char *); | 962 | extern void x_check_errors (Display *, const char *) |
| 963 | ATTRIBUTE_FORMAT_PRINTF (2, 0); | ||
| 959 | extern int x_had_errors_p (Display *); | 964 | extern int x_had_errors_p (Display *); |
| 960 | extern int x_catching_errors (void); | ||
| 961 | extern void x_uncatch_errors (void); | 965 | extern void x_uncatch_errors (void); |
| 962 | extern void x_clear_errors (Display *); | 966 | extern void x_clear_errors (Display *); |
| 963 | extern void x_set_window_size (struct frame *, int, int, int); | 967 | extern void x_set_window_size (struct frame *, int, int, int); |
| 964 | extern void x_set_mouse_position (struct frame *, int, int); | 968 | extern void x_set_mouse_position (struct frame *, int, int); |
| 965 | extern void x_set_mouse_pixel_position (struct frame *, int, int); | 969 | extern void x_set_mouse_pixel_position (struct frame *, int, int); |
| 970 | extern void xembed_request_focus (struct frame *); | ||
| 966 | extern void x_ewmh_activate_frame (struct frame *); | 971 | extern void x_ewmh_activate_frame (struct frame *); |
| 967 | extern void x_make_frame_visible (struct frame *); | 972 | extern void x_make_frame_visible (struct frame *); |
| 968 | extern void x_make_frame_invisible (struct frame *); | 973 | extern void x_make_frame_invisible (struct frame *); |