aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJan Djärv2002-06-28 19:41:21 +0000
committerJan Djärv2002-06-28 19:41:21 +0000
commite5cd5390a3133b14355949b5f154def83a078861 (patch)
treec0a251ec3bc15d533ad5e155d598f9a2b3a95cb8 /src
parent6674676b2244d50c1747ac053f5e9a6edcbb4bd7 (diff)
downloademacs-e5cd5390a3133b14355949b5f154def83a078861.tar.gz
emacs-e5cd5390a3133b14355949b5f154def83a078861.zip
(struct x_output): Add focus_state.
Diffstat (limited to 'src')
-rw-r--r--src/xterm.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/xterm.h b/src/xterm.h
index a0da573f800..d5b01aec97f 100644
--- a/src/xterm.h
+++ b/src/xterm.h
@@ -618,6 +618,11 @@ struct x_output
618 these may differ because this does not take into account possible 618 these may differ because this does not take into account possible
619 menubar. y_pixels_diff is with menubar height included */ 619 menubar. y_pixels_diff is with menubar height included */
620 int y_pixels_outer_diff; 620 int y_pixels_outer_diff;
621
622 /* Keep track of focus. May be EXPLICIT if we received a FocusIn for this
623 frame, or IMPLICIT if we received an EnterNotify.
624 FocusOut and LeaveNotify clears EXPLICIT/IMPLICIT. */
625 int focus_state;
621}; 626};
622 627
623enum 628enum
@@ -631,6 +636,19 @@ enum
631 FULLSCREEN_MOVE_WAIT = 8, 636 FULLSCREEN_MOVE_WAIT = 8,
632}; 637};
633 638
639enum
640{
641 /* Values for focus_state, used as bit mask.
642 EXPLICIT means if we received a FocusIn for the frame and know it has
643 the focus. IMPLICIT means we recevied an EnterNotify and the frame
644 may have the focus if no window manager is running.
645 FocusOut and LeaveNotify clears EXPLICIT/IMPLICIT. */
646 FOCUS_NONE = 0,
647 FOCUS_IMPLICIT = 1,
648 FOCUS_EXPLICIT = 2
649};
650
651
634/* Return the X window used for displaying data in frame F. */ 652/* Return the X window used for displaying data in frame F. */
635#define FRAME_X_WINDOW(f) ((f)->output_data.x->window_desc) 653#define FRAME_X_WINDOW(f) ((f)->output_data.x->window_desc)
636 654