Enlightenment CVS committal Author : raster Project : e17 Module : apps/e
Dir : e17/apps/e/src/bin Modified Files: e_hints.c e_hints.h Log Message: add gnome/kde fakes for ooo.... doesnt seem to work but documented workingness of this does exist =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_hints.c,v retrieving revision 1.75 retrieving revision 1.76 diff -u -3 -r1.75 -r1.76 --- e_hints.c 29 Sep 2005 15:01:41 -0000 1.75 +++ e_hints.c 7 Oct 2005 04:27:51 -0000 1.76 @@ -114,6 +114,8 @@ */ /* ecore_x_netwm_wm_identify(roots[i], win, "KWin");*/ ecore_x_netwm_wm_identify(roots[i], win, "Enlightenment"); +/* this makes openoffice.org read gtk settings so it doesnt look like shit */ + e_hints_openoffice_gnome_fake(roots[i]); ecore_x_netwm_supported_set(roots[i], supported, supported_num); } @@ -1125,3 +1127,24 @@ { /* TODO */ } + +void +e_hints_openoffice_gnome_fake(Ecore_X_Window root) +{ + Ecore_X_Atom gnome_atom, string_atom; + const char *string = "GNOME_SM_PROXY"; + + gnome_atom = ecore_x_atom_get("GNOME_SM_PROXY"); + string_atom = ecore_x_atom_get("STRING"); + ecore_x_window_prop_property_set(root, gnome_atom, string_atom, + 8, (void *)string, strlen(string)); +} + +void +e_hints_openoffice_kde_fake(Ecore_X_Window root) +{ + Ecore_X_Window win2; + + win2 = ecore_x_window_new(root, -20, -20, 1, 1); + ecore_x_netwm_wm_identify(root, win2, "KWin"); +} =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_hints.h,v retrieving revision 1.21 retrieving revision 1.22 diff -u -3 -r1.21 -r1.22 --- e_hints.h 30 Aug 2005 01:15:25 -0000 1.21 +++ e_hints.h 7 Oct 2005 04:27:51 -0000 1.22 @@ -45,5 +45,8 @@ EAPI void e_hints_window_e_state_set(E_Border *bd); EAPI void e_hints_window_e_state_get(E_Border *bd); +EAPI void e_hints_openoffice_gnome_fake(Ecore_X_Window root); +EAPI void e_hints_openoffice_kde_fake(Ecore_X_Window root); + #endif #endif ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs