SystemTray difference between Debian and XP
Hi, I'm trying the new SystemTray functionality. In XP I get the following events when I press a mouse button:
- mousePressed
- mouseReleased
- mouseClicked
That is ok, but in Debian with KDE I only get the following when I press the right mouse button:
- mousePressed
With the left button it works ok. Is it a bug?
I need the mouseClicked event in both platforms, any suggestion?
atilio
# 1
> Hi, I'm trying the new SystemTray functionality. In
> XP I get the following events when I press a mouse
> button:
> - mousePressed
> - mouseReleased
> - mouseClicked
>
> That is ok, but in Debian with KDE I only get the
> following when I press the right mouse button:
> - mousePressed
>
> With the left button it works ok. Is it a bug?
>
> I need the mouseClicked event in both platforms, any
> suggestion?
You say in the Windows environment that you get a mouseClicked event and then you go on to say that "With the left button it works ok." Your question seems fairly trivial to me, use the mouseClicked in both environments.
If you are trying to say you need a mouseClicked from your right button in the Debian KDE environment, and it does not supply it, then you need to approximate it--if the mouse is pressed, then you can assume that there was a "click" if it is over an object. If you need double click then time between clicks.
# 3
mouseUP, mouseDown, and etc are OS implementations of hardware interupt events. If an OS chooses to ignore, implement hardware events or syntesize more descript events they are free to do so.
I do not know if that is the case in Debian, but I suspect the implementation just didn't see a need to have it.