aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Rumney <[email protected]>2005-03-26 00:20:27 +0000
committerJason Rumney <[email protected]>2005-03-26 00:20:27 +0000
commitbc2223e6cd22a620933e313c580ac17eb26cff27 (patch)
tree6002aa5bc23c390464e6e6d8bfc60c61983b1ca5 /src
parent55131bef54397b26d73ad4c5e4d5ac7ac816a45b (diff)
(x_output): add focus_state.
Diffstat (limited to 'src')
-rw-r--r--src/w32term.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/w32term.h b/src/w32term.h
index 1051877452..4616d8a499 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
{