From 5ca66a576d3e8b758cd5dc766bc99b2214915995 Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Fri, 7 Oct 2005 04:27:51 +0000 Subject: [PATCH] add gnome/kde fakes for ooo.... doesnt seem to work but documented workingness of this does exist SVN revision: 17261 --- src/bin/e_hints.c | 23 +++++++++++++++++++++++ src/bin/e_hints.h | 3 +++ 2 files changed, 26 insertions(+) diff --git a/src/bin/e_hints.c b/src/bin/e_hints.c index 928246a4a..a33a40002 100644 --- a/src/bin/e_hints.c +++ b/src/bin/e_hints.c @@ -114,6 +114,8 @@ e_hints_init(void) */ /* 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 @@ e_hints_window_e_state_set(E_Border *bd) { /* 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"); +} diff --git a/src/bin/e_hints.h b/src/bin/e_hints.h index 79a281037..de31a0242 100644 --- a/src/bin/e_hints.h +++ b/src/bin/e_hints.h @@ -45,5 +45,8 @@ EAPI void e_hints_window_desktop_set(E_Border *bd); 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