Event problem with Nifty

I’m using nifty for hud components and my own drag listener.

If the drag listener recognizes a pressed event, it disables the cursor by calling [java]inputManager.setCursorVisible(false);[/java] and on release it is enabled again [java]inputManager.setCursorVisible(true);[/java].

After dragging the mouse, the cursor is visible but nifty does not get onClick events anymore. Is it strongly discouraged to set the cursor invisible?