Hi Thomas.. Hiding windows is as simple as window->SetOpacity( window, 0 ); The SaWMan call is likely to allow a windowmanager to act upon changing a window's visibility, not sure cause it's not implemented as you point out. SetOpacity results in update_region() which will do a SAWMAN_VISIBLE_WINDOW( window ) check.
ISaWMan and ISaWManager constitute of callbacks issued by SaWMan. Of course, inside these callbacks, you may need to query/change some SaWMan status; for that you'll use the calls in sawman_manager.h. For instance, you might want to prevent a certain window getting focus. In the required callback (which is generally issued before SaWMan performs the change) you can override the behaviour, or if it's not this certain window, follow the default behaviour by calling the 'official' change focus func. hth, Niels Thomas Gutteridge wrote: > Hello > > I have a couple of questions about SaWMan: > > Firstly, I notice that the function SetVisible() in the ISaWManManager > interface is not implemented. I'd like to use it to hide windows! Has > it simply just not been written yet or is there a reason why I > shouldn't need to use it? If the former, could someone suggest how I > should hide (and re-show) a window? Looking around I got the > impression that calling sawman_withdraw_window() might be the answer. > > Secondly, I'm a bit confused by the design of the API that SaWMan > provides to window manager developers. I originally assumed that the > intention was that the ISaWMan and ISaWManManager interfaces alone > would constitute the API. But then I discovered the wider range of > functionality available through sawman_manager.h. I have tended toward > the conclusion that the manager interface is not yet complete and, as > a stop-gap, the richer functionality has been made available by > exposing this extra header? Is this correct or have I misunderstood. > > Many Thanks > Tom. > _______________________________________________ > directfb-dev mailing list > directfb-dev@directfb.org > http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev > > -- .------------------------------------------. | DirectFB - Hardware accelerated graphics | | http://www.directfb.org/ | "------------------------------------------" _______________________________________________ directfb-dev mailing list directfb-dev@directfb.org http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev