Newsgroups: comp.windows.x Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!caen!news.cs.indiana.edu!att!cbnewsh!warren From: warren@cbnewsh.att.com (warren.a.montgomery) Subject: OpenWindows button events question Organization: AT&T Bell Laboratories Distribution: na Date: Thu, 4 Apr 91 14:29:51 GMT Message-ID: <1991Apr4.142951.3867@cbnewsh.att.com> Keywords: events, Openwindows, click to type Lines: 25 We have an application that does not run properly under open windows with "Click select: (click a mouse button in a window to give it the focus) enabled. When we traced the events it is getting, it seems that when the left or middle mouse buttons are pressed over a window that currently has the input focus, the application in the window gets the sequence of events: LeaveNotify (leaving the window) ButtonPress (indicating the button) EnterNotify (entering the window) When the button is released, a simple button release event is generated. The trouble is the application is confused by getting the button press when it thinks the mouse is not in the window. The Leave and Enter events in this sequence do not make sense to me. Are they a bug or a feature? If they are a feature, could someone explain why they are sent when the mouse never leaves the window in question? -- Warren Montgomery att!ihlpf!warren