diff options
| author | Jason Rumney | 2005-03-26 00:20:27 +0000 |
|---|---|---|
| committer | Jason Rumney | 2005-03-26 00:20:27 +0000 |
| commit | bc2223e6cd22a620933e313c580ac17eb26cff27 (patch) | |
| tree | 6002aa5bc23c390464e6e6d8bfc60c61983b1ca5 /src | |
| parent | 55131bef54397b26d73ad4c5e4d5ac7ac816a45b (diff) | |
| download | emacs-bc2223e6cd22a620933e313c580ac17eb26cff27.tar.gz emacs-bc2223e6cd22a620933e313c580ac17eb26cff27.zip | |
(x_output): add focus_state.
Diffstat (limited to 'src')
| -rw-r--r-- | src/w32term.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/w32term.h b/src/w32term.h index 10518774522..4616d8a4995 100644 --- a/src/w32term.h +++ b/src/w32term.h | |||
| @@ -276,8 +276,25 @@ struct x_output | |||
| 276 | { | 276 | { |
| 277 | PIX_TYPE background_pixel; | 277 | PIX_TYPE background_pixel; |
| 278 | PIX_TYPE foreground_pixel; | 278 | PIX_TYPE foreground_pixel; |
| 279 | |||
| 280 | /* Keep track of focus. May be EXPLICIT if we received a FocusIn for this | ||
| 281 | frame, or IMPLICIT if we received an EnterNotify. | ||
| 282 | FocusOut and LeaveNotify clears EXPLICIT/IMPLICIT. */ | ||
| 283 | int focus_state; | ||
| 284 | |||
| 279 | }; | 285 | }; |
| 280 | 286 | ||
| 287 | enum | ||
| 288 | { | ||
| 289 | /* Values for focus_state, used as bit mask. | ||
| 290 | EXPLICIT means we received a FocusIn for the frame and know it has | ||
| 291 | the focus. IMPLICIT means we recevied an EnterNotify and the frame | ||
| 292 | may have the focus if no window manager is running. | ||
| 293 | FocusOut and LeaveNotify clears EXPLICIT/IMPLICIT. */ | ||
| 294 | FOCUS_NONE = 0, | ||
| 295 | FOCUS_IMPLICIT = 1, | ||
| 296 | FOCUS_EXPLICIT = 2 | ||
| 297 | }; | ||
| 281 | 298 | ||
| 282 | struct w32_output | 299 | struct w32_output |
| 283 | { | 300 | { |