Re: [vwnc] no grabbed mouse events if button is up

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] no grabbed mouse events if button is up

Stevenson, Dave (contr)
RE: [vwnc] no grabbed mouse events if button is up

False alarm. Looks like some left-over expirimental code was ungrabbing the mouse unexpectedly during my grab.


Stevenson, Dave (contr) <[hidden email]>
972-946-4890


_____________________________________________
From:   Stevenson, Dave (Contr) 
Sent:   Tuesday, April 21, 2009 5:43 PM
To:     VWNC List NC
Subject:        [vwnc] no grabbed mouse events if button is up

I'm grabbing the mouse in VW 7.6 while the button is up. If I'm over some other VW window, I get the mouse moved event, but if over non-VW area, no mouse moved event. Using identical code to initiate the grab, but this time while the button is down, I get mouse moved events anywhere. Why the difference?

Does Windows XP decide not to deliver mouse moved events to the VM if the left button is up, even though grabbing?

Does the VM decide not to pass mouse moved events up to the image if the red button is up, even though grabbing?

I haven't found any code in the image that would prevent mouse moved events from being delivered to the currentMouseConsumer if the red button is up. Am I missing it there?

Stevenson, Dave (contr) <[hidden email]>
972-946-4890


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] no grabbed mouse events if button is up

Stevenson, Dave (contr)
RE: [vwnc] no grabbed mouse events if button is up

Arrgh.

Spoke too soon. We removed the superfluous ungrab, and still I only receive events outside of VW real estate if the mouse button is down. We keep looking, but can't figure out why.


Stevenson, Dave (contr) <[hidden email]>
972-946-4890


_____________________________________________
From:   Stevenson, Dave (Contr) 
Sent:   Wednesday, April 22, 2009 11:54 AM
To:     'VWNC List NC'
Subject:        RE: [vwnc] no grabbed mouse events if button is up

False alarm. Looks like some left-over expirimental code was ungrabbing the mouse unexpectedly during my grab.


Stevenson, Dave (contr) <[hidden email]>
972-946-4890


_____________________________________________
From:   Stevenson, Dave (Contr) 
Sent:   Tuesday, April 21, 2009 5:43 PM
To:     VWNC List NC
Subject:        [vwnc] no grabbed mouse events if button is up

I'm grabbing the mouse in VW 7.6 while the button is up. If I'm over some other VW window, I get the mouse moved event, but if over non-VW area, no mouse moved event. Using identical code to initiate the grab, but this time while the button is down, I get mouse moved events anywhere. Why the difference?

Does Windows XP decide not to deliver mouse moved events to the VM if the left button is up, even though grabbing?

Does the VM decide not to pass mouse moved events up to the image if the red button is up, even though grabbing?

I haven't found any code in the image that would prevent mouse moved events from being delivered to the currentMouseConsumer if the red button is up. Am I missing it there?

Stevenson, Dave (contr) <[hidden email]>
972-946-4890


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] no grabbed mouse events if button is up

Cesar Rabak
Stevenson, Dave (Contr) escreveu:
> Arrgh.
>
> Spoke too soon. We removed the superfluous ungrab, and still I only
> receive events outside of VW real estate if the mouse button is down. We
> keep looking, but can't figure out why.
>
>
Dave,

Thinking a little about it makes sense: if the VW application wants to
keep the mouse grab outside its state it would be no way to change focus
(w/mouse) to another application (IIRC apps w/this behaviour used to be
called "modal").

OTOH, with the mouse down you might be dragging an object to dropped in
another application (or the OS).



--
Cesar Rabak
GNU/Linux User 52247.
Get counted: http://counter.li.org/
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] no grabbed mouse events if button is up

Stevenson, Dave (contr)
In reply to this post by Stevenson, Dave (contr)
RE: [vwnc] no grabbed mouse events if button is up

I guess Cincom's off the hook:
        http://msdn.microsoft.com/en-us/library/ms646262.aspx
The second paragraph seems to confirm that Windows is the culprit:
        "If the mouse cursor is over a window created by another thread, the system will direct mouse input to the specified window only if a mouse button is down."

Prim 936 (found in $VISUALWORKS\bin\src\platpc\ntanim.c) calls SetCapture(), but only after createHiddenFullScreenWindow(), which is the hack required to get Windoze to deliver the events. I guess if we really want to grab with the buttons up, we can try that technique as well.

Stevenson, Dave (contr) <[hidden email]>
972-946-4890


_____________________________________________
From:   Stevenson, Dave (Contr) 
Sent:   Wednesday, April 22, 2009 1:11 PM
To:     Stevenson, Dave (Contr); VWNC List NC
Subject:        RE: [vwnc] no grabbed mouse events if button is up

Arrgh.

Spoke too soon. We removed the superfluous ungrab, and still I only receive events outside of VW real estate if the mouse button is down. We keep looking, but can't figure out why.


Stevenson, Dave (contr) <[hidden email]>
972-946-4890


_____________________________________________
From:   Stevenson, Dave (Contr) 
Sent:   Wednesday, April 22, 2009 11:54 AM
To:     'VWNC List NC'
Subject:        RE: [vwnc] no grabbed mouse events if button is up

False alarm. Looks like some left-over expirimental code was ungrabbing the mouse unexpectedly during my grab.


Stevenson, Dave (contr) <[hidden email]>
972-946-4890


_____________________________________________
From:   Stevenson, Dave (Contr) 
Sent:   Tuesday, April 21, 2009 5:43 PM
To:     VWNC List NC
Subject:        [vwnc] no grabbed mouse events if button is up

I'm grabbing the mouse in VW 7.6 while the button is up. If I'm over some other VW window, I get the mouse moved event, but if over non-VW area, no mouse moved event. Using identical code to initiate the grab, but this time while the button is down, I get mouse moved events anywhere. Why the difference?

Does Windows XP decide not to deliver mouse moved events to the VM if the left button is up, even though grabbing?

Does the VM decide not to pass mouse moved events up to the image if the red button is up, even though grabbing?

I haven't found any code in the image that would prevent mouse moved events from being delivered to the currentMouseConsumer if the red button is up. Am I missing it there?

Stevenson, Dave (contr) <[hidden email]>
972-946-4890


_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc