Change FocusIn/Out semantics to match Enter/Leave semantics.

This commit is contained in:
Peter Hutterer 2007-04-17 16:51:16 +09:30
commit b6aec7f6f9
4 changed files with 92 additions and 26 deletions

View file

@ -391,5 +391,4 @@ typedef struct _QdEvent {
int evcount;
} QdEventRec;
#define MPXDBG(...) ErrorF("MPX: " __VA_ARGS__ )
#endif /* INPUTSTRUCT_H */

View file

@ -216,7 +216,15 @@ typedef struct _ScreenSaverStuff {
extern int screenIsSaved;
extern ScreenSaverStuffRec savedScreenInfo[MAXSCREENS];
extern int EnterLeavePrivatesIndex;
extern int FocusPrivatesIndex;
/* Used to maintain semantics of core protocol for Enter/LeaveNotifies and
* FocusIn/Out events for multiple pointers/keyboards.
*/
typedef struct _FocusSemaphores {
int enterleave;
int focusinout;
} FocusSemaphoresRec, *FocusSemaphoresPtr;
/*
* this is the configuration parameter "NO_BACK_SAVE"