[SOLVED] unset window mouse cursor, but don't default
Posted: Sat Feb 05, 2011 15:52
Hello folks,
in my layout I have a full screen default window as root that I don't want any cursor to be shown in, however I don't want to define a cursor (MouseCursorImage property) for every single subwindow.
If the mouse cursor would get inherited from parent window I'd just wrap all windows showing a cursor by another window widget only specifying it once, sadly this doesn't work and default cursor gets applied.
So I thought of unsetting the default cursor for the default window, but sadly I only can specify a new cursor or it would fall back to the default one.
Another idea I had was to set the size of the default window to zero, but it's children have to keep in scale with screen size and it didn't seem to work anyway, default cursor kept being applied.
I found a workaround though and simply defined a 0x0 pixel cursor image in my imageset to use. That works well, but I still wonder if it would be possible to actually unset the cursor (without of complicate event handling + hide()/show()).
If not, maybe consider it for a future release.
thanks
Edit: topic solved, thanks
in my layout I have a full screen default window as root that I don't want any cursor to be shown in, however I don't want to define a cursor (MouseCursorImage property) for every single subwindow.
If the mouse cursor would get inherited from parent window I'd just wrap all windows showing a cursor by another window widget only specifying it once, sadly this doesn't work and default cursor gets applied.
So I thought of unsetting the default cursor for the default window, but sadly I only can specify a new cursor or it would fall back to the default one.
Another idea I had was to set the size of the default window to zero, but it's children have to keep in scale with screen size and it didn't seem to work anyway, default cursor kept being applied.
I found a workaround though and simply defined a 0x0 pixel cursor image in my imageset to use. That works well, but I still wonder if it would be possible to actually unset the cursor (without of complicate event handling + hide()/show()).
If not, maybe consider it for a future release.
thanks
Edit: topic solved, thanks