361 |
XColor *color_cells; |
XColor *color_cells; |
362 |
int ncolor_cells; |
int ncolor_cells; |
363 |
|
|
364 |
/* Bits and shifts to use to compose pixel values on Direct and TrueColor |
/* Bits and shifts to use to compose pixel values on TrueColor visuals. */ |
|
visuals. */ |
|
365 |
int red_bits, blue_bits, green_bits; |
int red_bits, blue_bits, green_bits; |
366 |
int red_offset, blue_offset, green_offset; |
int red_offset, blue_offset, green_offset; |
367 |
|
|
368 |
|
/* The type of window manager we have. If we move FRAME_OUTER_WINDOW |
369 |
|
to x/y 0/0, some window managers (type A) puts the window manager |
370 |
|
decorations outside the screen and FRAME_OUTER_WINDOW exactly at 0/0. |
371 |
|
Other window managers (type B) puts the window including decorations |
372 |
|
at 0/0, so FRAME_OUTER_WINDOW is a bit below 0/0. |
373 |
|
Record the type of WM in use so we can compensate for type A WMs. */ |
374 |
|
enum |
375 |
|
{ |
376 |
|
X_WMTYPE_UNKNOWN, |
377 |
|
X_WMTYPE_A, |
378 |
|
X_WMTYPE_B |
379 |
|
} wm_type; |
380 |
}; |
}; |
381 |
|
|
382 |
#ifdef HAVE_X_I18N |
#ifdef HAVE_X_I18N |
623 |
frame, or IMPLICIT if we received an EnterNotify. |
frame, or IMPLICIT if we received an EnterNotify. |
624 |
FocusOut and LeaveNotify clears EXPLICIT/IMPLICIT. */ |
FocusOut and LeaveNotify clears EXPLICIT/IMPLICIT. */ |
625 |
int focus_state; |
int focus_state; |
626 |
|
|
627 |
|
/* The latest move we made to FRAME_OUTER_WINDOW. Saved so we can |
628 |
|
compensate for type A WMs (see wm_type in dpyinfo above. */ |
629 |
|
int expected_top; |
630 |
|
int expected_left; |
631 |
|
|
632 |
|
/* Nonzero if we have made a move and needs to check if the WM placed us |
633 |
|
at the right position. */ |
634 |
|
int check_expected_move; |
635 |
}; |
}; |
636 |
|
|
637 |
#define No_Cursor (None) |
#define No_Cursor (None) |