[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/xterm.h
From: |
Jan Djärv |
Subject: |
[Emacs-diffs] Changes to emacs/src/xterm.h |
Date: |
Sun, 05 Oct 2003 07:52:49 -0400 |
Index: emacs/src/xterm.h
diff -c emacs/src/xterm.h:1.153 emacs/src/xterm.h:1.154
*** emacs/src/xterm.h:1.153 Mon Sep 1 11:45:58 2003
--- emacs/src/xterm.h Sun Oct 5 07:52:47 2003
***************
*** 361,370 ****
XColor *color_cells;
int ncolor_cells;
! /* Bits and shifts to use to compose pixel values on Direct and TrueColor
! visuals. */
int red_bits, blue_bits, green_bits;
int red_offset, blue_offset, green_offset;
};
#ifdef HAVE_X_I18N
--- 361,382 ----
XColor *color_cells;
int ncolor_cells;
! /* Bits and shifts to use to compose pixel values on TrueColor visuals. */
int red_bits, blue_bits, green_bits;
int red_offset, blue_offset, green_offset;
+
+ /* The type of window manager we have. If we move FRAME_OUTER_WINDOW
+ to x/y 0/0, some window managers (type A) puts the window manager
+ decorations outside the screen and FRAME_OUTER_WINDOW exactly at 0/0.
+ Other window managers (type B) puts the window including decorations
+ at 0/0, so FRAME_OUTER_WINDOW is a bit below 0/0.
+ Record the type of WM in use so we can compensate for type A WMs. */
+ enum
+ {
+ X_WMTYPE_UNKNOWN,
+ X_WMTYPE_A,
+ X_WMTYPE_B
+ } wm_type;
};
#ifdef HAVE_X_I18N
***************
*** 611,616 ****
--- 623,637 ----
frame, or IMPLICIT if we received an EnterNotify.
FocusOut and LeaveNotify clears EXPLICIT/IMPLICIT. */
int focus_state;
+
+ /* The latest move we made to FRAME_OUTER_WINDOW. Saved so we can
+ compensate for type A WMs (see wm_type in dpyinfo above. */
+ int expected_top;
+ int expected_left;
+
+ /* Nonzero if we have made a move and needs to check if the WM placed us
+ at the right position. */
+ int check_expected_move;
};
#define No_Cursor (None)
- [Emacs-diffs] Changes to emacs/src/xterm.h,
Jan Djärv <=