aboutsummaryrefslogtreecommitdiffstats
path: root/src/xterm.h
diff options
context:
space:
mode:
authorStefan Monnier2012-03-25 16:37:21 -0400
committerStefan Monnier2012-03-25 16:37:21 -0400
commit699c782b7668c44d0fa4446331b0590a6d5dac82 (patch)
tree5dcce364741d0761920a3d274b0fc8aba4103d45 /src/xterm.h
parent98fb480ee31bf74cf554044f60f21df16566dd7f (diff)
parente99a9b8bdccadded1f6fae88ee7a2a93dfd4eacf (diff)
downloademacs-pending.tar.gz
emacs-pending.zip
Merge from trunkpending
Diffstat (limited to 'src/xterm.h')
-rw-r--r--src/xterm.h23
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
4This file is part of GNU Emacs. 4This 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 *,
955extern int x_text_icon (struct frame *, const char *); 959extern int x_text_icon (struct frame *, const char *);
956extern int x_bitmap_icon (struct frame *, Lisp_Object); 960extern int x_bitmap_icon (struct frame *, Lisp_Object);
957extern void x_catch_errors (Display *); 961extern void x_catch_errors (Display *);
958extern void x_check_errors (Display *, const char *); 962extern void x_check_errors (Display *, const char *)
963 ATTRIBUTE_FORMAT_PRINTF (2, 0);
959extern int x_had_errors_p (Display *); 964extern int x_had_errors_p (Display *);
960extern int x_catching_errors (void);
961extern void x_uncatch_errors (void); 965extern void x_uncatch_errors (void);
962extern void x_clear_errors (Display *); 966extern void x_clear_errors (Display *);
963extern void x_set_window_size (struct frame *, int, int, int); 967extern void x_set_window_size (struct frame *, int, int, int);
964extern void x_set_mouse_position (struct frame *, int, int); 968extern void x_set_mouse_position (struct frame *, int, int);
965extern void x_set_mouse_pixel_position (struct frame *, int, int); 969extern void x_set_mouse_pixel_position (struct frame *, int, int);
970extern void xembed_request_focus (struct frame *);
966extern void x_ewmh_activate_frame (struct frame *); 971extern void x_ewmh_activate_frame (struct frame *);
967extern void x_make_frame_visible (struct frame *); 972extern void x_make_frame_visible (struct frame *);
968extern void x_make_frame_invisible (struct frame *); 973extern void x_make_frame_invisible (struct frame *);