{
// create an X11 window by default
Any surface;
- ECore::WindowRenderSurface* windowSurface = new ECore::WindowRenderSurface( windowPosition, surface, name, mIsTransparent );
- SetClass( name, className );
+ ECore::WindowRenderSurface* windowSurface = new ECore::WindowRenderSurface( windowPosition, surface, name, className, mIsTransparent );
windowSurface->Map();
mSurface = windowSurface;
WindowRenderSurface::WindowRenderSurface( Dali::PositionSize positionSize,
Any surface,
const std::string& name,
+ const std::string& className,
bool isTransparent)
: EcoreXRenderSurface( positionSize, surface, name, isTransparent ),
- mNeedToApproveDeiconify(false)
+ mNeedToApproveDeiconify(false),
+ mClassName(className)
{
DALI_LOG_INFO( gRenderSurfaceLogFilter, Debug::Verbose, "Creating Window\n" );
Init( surface );
// set up window title which will be helpful for debug utitilty
ecore_x_icccm_title_set( mX11Window, mTitle.c_str() );
ecore_x_netwm_name_set( mX11Window, mTitle.c_str() );
+ ecore_x_icccm_name_class_set( mX11Window, mTitle.c_str(), mClassName.c_str() );
// set up etc properties to match with ecore-evas
char *id = NULL;
* @param [in] positionSize the position and size of the surface
* @param [in] surface can be a X-window or X-pixmap (type must be unsigned int).
* @param [in] name optional name of surface passed in
+ * @param [in] className optional class name of the surface passed in
* @param [in] isTransparent if it is true, surface has 32 bit color depth, otherwise, 24 bit
*/
WindowRenderSurface( Dali::PositionSize positionSize,
Any surface,
const std::string& name,
+ const std::string& className,
bool isTransparent = false );
/**
Ecore_X_Window mX11Window; ///< X-Window
bool mNeedToApproveDeiconify; ///< Whether need to send ECORE_X_ATOM_E_DEICONIFY_APPROVE event
+ std::string mClassName; ///< The class name of the window
}; // class WindowRenderSurface