void HintsInit(void) { Window win; AtomListIntern(atoms_misc_names, N_ITEMS(atoms_misc_names), atoms_misc); win = XCreateSimpleWindow(disp, WinGetXwin(VROOT), -200, -200, 5, 5, 0, 0, 0); ICCCM_Init(); MWM_SetInfo(); #if ENABLE_GNOME GNOME_SetHints(win); #endif EWMH_Init(win); ecore_x_window_prop_string_set(WinGetXwin(VROOT), E16_ATOM_VERSION, e_wm_version); if (Mode.wm.window) { HintsSetWindowName(VROOT, "Enlightenment"); HintsSetWindowClass(VROOT, "Virtual-Root", "Enlightenment"); } Mode.root.ext_pmap = HintsGetRootPixmap(VROOT); Mode.root.ext_pmap_valid = EDrawableCheck(Mode.root.ext_pmap, 0); }
/** * Set the window role hint. * @param win The window * @param role The role string */ EAPI void ecore_x_icccm_window_role_set(Ecore_X_Window win, const char *role) { LOGFN(__FILE__, __LINE__, __FUNCTION__); ecore_x_window_prop_string_set(win, ECORE_X_ATOM_WM_WINDOW_ROLE, (char *)role); }