Mercurial > emacs
comparison src/xterm.h @ 46075:39e3c9d9b655
(struct x_output): Add focus_state.
author | Jan Djärv <jan.h.d@swipnet.se> |
---|---|
date | Fri, 28 Jun 2002 19:41:21 +0000 |
parents | 863817d7e734 |
children | 160bfc160855 |
comparison
equal
deleted
inserted
replaced
46074:9bdcd2b36fbd | 46075:39e3c9d9b655 |
---|---|
616 | 616 |
617 /* As y_pixels_diff, but to FRAME_OUTER_WINDOW. In the toolkit version, | 617 /* As y_pixels_diff, but to FRAME_OUTER_WINDOW. In the toolkit version, |
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 |
623 enum | 628 enum |
624 { | 629 { |
625 /* Values used as a bit mask, BOTH == WIDTH | HEIGHT. */ | 630 /* Values used as a bit mask, BOTH == WIDTH | HEIGHT. */ |
628 FULLSCREEN_HEIGHT = 2, | 633 FULLSCREEN_HEIGHT = 2, |
629 FULLSCREEN_BOTH = 3, | 634 FULLSCREEN_BOTH = 3, |
630 FULLSCREEN_WAIT = 4, | 635 FULLSCREEN_WAIT = 4, |
631 FULLSCREEN_MOVE_WAIT = 8, | 636 FULLSCREEN_MOVE_WAIT = 8, |
632 }; | 637 }; |
638 | |
639 enum | |
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 | |
633 | 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 |
637 /* Return the outermost X window associated with the frame F. */ | 655 /* Return the outermost X window associated with the frame F. */ |