home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.windows.x:20766 comp.windows.x.intrinsics:713 comp.windows.x.motif:8346
- Path: sparky!uunet!wupost!cs.utexas.edu!ut-emx!tivoli!foraker!taylor
- From: taylor@foraker.NoSubdomain.NoDomain (Eric Taylor)
- Newsgroups: comp.windows.x,comp.windows.x.intrinsics,comp.windows.x.motif
- Subject: Re: X/Xt/Motif Event Interleaving?
- Message-ID: <7475@tivoli.UUCP>
- Date: 5 Jan 93 18:50:41 GMT
- References: <BUZZ.93Jan4135708@lion.bear.com>
- Sender: news@tivoli.UUCP
- Followup-To: comp.windows.x
- Lines: 26
-
- When a widget is pressed, all button events
- are reported relative to that widget until
- the button is let go.
-
- So if the mouse enters another widget,
- no event is reported.
-
- What you can do use PassiveGrabs with owner_events == TRUE
- or to issue
- XUngrabPointer followed by XGrabPointer with
- owner_events == TRUE when the button is pressed.
-
- One drawback is that the EventHandlers of the
- target widgets will be called with the
- ButtonRelease instead of the source widget.
-
- If the mouse is let go on window outside of the
- application, the ButtonRelease will go back to
- the originating widget.
-
- There are small annoying problems at every turn
- when dealing with Drag And Drop mechanisms in X.
-
- Motif 1.2 has a Drag and Drop library, why not
- use it? From what I understand, it is a vast improvement
- over its predecessor.
-