summaryrefslogtreecommitdiff
path: root/src/w32term.h
diff options
context:
space:
mode:
authorKaroly Lorentey <lorentey@elte.hu>2005-03-27 17:29:43 +0000
committerKaroly Lorentey <lorentey@elte.hu>2005-03-27 17:29:43 +0000
commita0a7e8c6de361d15703e78a1e934d0347475dcb8 (patch)
treebea99880ecb2d7b242c5fdddb69583b3d686e22b /src/w32term.h
parentcd5caccf0c791bcaa19190f5d62ace1ebe9987c8 (diff)
parent99a5658144bce7733e48d9c1877b2795afc1aa9d (diff)
downloademacs-a0a7e8c6de361d15703e78a1e934d0347475dcb8.tar.gz
Merged from miles@gnu.org--gnu-2005 (patch 204-213)
Patches applied: * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-204 Clean up gdb-ui breakpoint faces * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-205 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-206 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-207 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-208 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-209 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-210 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-211 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-212 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-213 Update from CVS git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-319
Diffstat (limited to 'src/w32term.h')
-rw-r--r--src/w32term.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/w32term.h b/src/w32term.h
index ca843ddbfb2..db7e6760ee6 100644
--- a/src/w32term.h
+++ b/src/w32term.h
@@ -276,8 +276,25 @@ struct x_output
{
PIX_TYPE background_pixel;
PIX_TYPE foreground_pixel;
+
+ /* Keep track of focus. May be EXPLICIT if we received a FocusIn for this
+ frame, or IMPLICIT if we received an EnterNotify.
+ FocusOut and LeaveNotify clears EXPLICIT/IMPLICIT. */
+ int focus_state;
+
};
+enum
+{
+ /* Values for focus_state, used as bit mask.
+ EXPLICIT means we received a FocusIn for the frame and know it has
+ the focus. IMPLICIT means we recevied an EnterNotify and the frame
+ may have the focus if no window manager is running.
+ FocusOut and LeaveNotify clears EXPLICIT/IMPLICIT. */
+ FOCUS_NONE = 0,
+ FOCUS_IMPLICIT = 1,
+ FOCUS_EXPLICIT = 2
+};
struct w32_output
{