[solved] EventInputCaptureLost question...
Posted: Mon May 26, 2008 16:37
Hello!
I need an event to be executed after a window loses input capture, so I'm using EventInputCaptureLost.
However it doesn't seem to work the way (I think) it should.
When there is no EventInputCapureGained registered (only EventInputCaptureLost is registered), EventInputCaptureLost is fired each time I click on a window, and never when I click on another window after the focus was on the window in question (and that is what it should do, right?).
When there is also EventInputCaptureGained registered, these two event are fired alternately when I click on the window (also EventInputCaptureLost is fired as it should be when I click on another window, but only in this specific situation - EventInputCaptureGained is registered and fired before this).
So in this situation, I click on the window, EventInputCaptureGained is fired. I again click on the window, and EventInputCaptureLost is fired, but the input focus is still on the same window, and this is wrong, right?
In the one remaining situation, where only EventInputCaptureGained is registered, it is fired on click 1, 3, 5, 7..., but should be fired only the first time, since input capure is never lost if I click only on that window.
Is this a bug, or did I get something wrong?
Thx
I need an event to be executed after a window loses input capture, so I'm using EventInputCaptureLost.
However it doesn't seem to work the way (I think) it should.
When there is no EventInputCapureGained registered (only EventInputCaptureLost is registered), EventInputCaptureLost is fired each time I click on a window, and never when I click on another window after the focus was on the window in question (and that is what it should do, right?).
When there is also EventInputCaptureGained registered, these two event are fired alternately when I click on the window (also EventInputCaptureLost is fired as it should be when I click on another window, but only in this specific situation - EventInputCaptureGained is registered and fired before this).
So in this situation, I click on the window, EventInputCaptureGained is fired. I again click on the window, and EventInputCaptureLost is fired, but the input focus is still on the same window, and this is wrong, right?
In the one remaining situation, where only EventInputCaptureGained is registered, it is fired on click 1, 3, 5, 7..., but should be fired only the first time, since input capure is never lost if I click only on that window.
Is this a bug, or did I get something wrong?
Thx