DFBResult IWindow_Real::RequestFocus() { D_DEBUG_AT( Core_Window, "IWindow_Real::%s( %p )\n", __FUNCTION__, obj ); D_MAGIC_ASSERT( obj, CoreWindow ); return dfb_window_request_focus( obj ); }
static DFBResult IDirectFBWindow_RequestFocus( IDirectFBWindow *thiz ) { CoreWindow *window; DIRECT_INTERFACE_GET_DATA(IDirectFBWindow) D_DEBUG_AT( IDirectFB_Window, "%s()\n", __FUNCTION__ ); if (data->destroyed) return DFB_DESTROYED; window = data->window; if (window->config.options & DWOP_GHOST) return DFB_UNSUPPORTED; if (!window->config.opacity && !(window->caps & DWCAPS_INPUTONLY)) return DFB_UNSUPPORTED; return dfb_window_request_focus( window ); }