Enlightenment CVS committal Author : mej Project : eterm Module : Eterm
Dir : eterm/Eterm/src Modified Files: startup.c startup.h windows.c Log Message: Thu Sep 15 21:55:34 2005 Michael Jennings (mej) Support NetWM startup ID's. ---------------------------------------------------------------------- =================================================================== RCS file: /cvsroot/enlightenment/eterm/Eterm/src/startup.c,v retrieving revision 1.52 retrieving revision 1.53 diff -u -3 -r1.52 -r1.53 --- startup.c 16 Aug 2005 14:50:46 -0000 1.52 +++ startup.c 16 Sep 2005 01:56:01 -0000 1.53 @@ -21,7 +21,7 @@ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -static const char cvs_ident[] = "$Id: startup.c,v 1.52 2005/08/16 14:50:46 mej Exp $"; +static const char cvs_ident[] = "$Id: startup.c,v 1.53 2005/09/16 01:56:01 mej Exp $"; #include "config.h" #include "feature.h" @@ -153,6 +153,7 @@ props[PROP_DND_SELECTION] = XInternAtom(Xdisplay, "DndSelection", False); props[PROP_EWMH_ICON] = XInternAtom(Xdisplay, "_NET_WM_ICON", False); props[PROP_EWMH_OPACITY] = XInternAtom(Xdisplay, "_NET_WM_WINDOW_OPACITY", True); + props[PROP_EWMH_STARTUP_ID] = XInternAtom(Xdisplay, "_NET_STARTUP_ID", False); if ((theme_dir = conf_parse_theme(&rs_theme, THEME_CFG, PARSE_TRY_ALL)) != NULL) { char *tmp; =================================================================== RCS file: /cvsroot/enlightenment/eterm/Eterm/src/startup.h,v retrieving revision 1.21 retrieving revision 1.22 diff -u -3 -r1.21 -r1.22 --- startup.h 27 Jun 2005 00:07:13 -0000 1.21 +++ startup.h 16 Sep 2005 01:56:01 -0000 1.22 @@ -105,6 +105,7 @@ PROP_DND_SELECTION, PROP_EWMH_ICON, PROP_EWMH_OPACITY, + PROP_EWMH_STARTUP_ID, NUM_PROPS }; =================================================================== RCS file: /cvsroot/enlightenment/eterm/Eterm/src/windows.c,v retrieving revision 1.72 retrieving revision 1.73 diff -u -3 -r1.72 -r1.73 --- windows.c 16 Aug 2005 14:50:46 -0000 1.72 +++ windows.c 16 Sep 2005 01:56:01 -0000 1.73 @@ -21,7 +21,7 @@ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -static const char cvs_ident[] = "$Id: windows.c,v 1.72 2005/08/16 14:50:46 mej Exp $"; +static const char cvs_ident[] = "$Id: windows.c,v 1.73 2005/09/16 01:56:01 mej Exp $"; #include "config.h" #include "feature.h" @@ -498,6 +498,16 @@ XChangeProperty(Xdisplay, TermWin.parent, props[PROP_DESKTOP], XA_CARDINAL, 32, PropModeReplace, (unsigned char *) &val, 1); } + /* Set startup ID property if given by the launching application. */ + if (getenv("DESKTOP_STARTUP_ID")) { + Atom atom; + unsigned char *tmp = SPIF_CAST_PTR(uchar) getenv("DESKTOP_STARTUP_ID"); + + atom = XInternAtom(Xdisplay, "UTF8_STRING", False); + XChangeProperty(Xdisplay, TermWin.parent, props[PROP_EWMH_STARTUP_ID], atom, 8, PropModeReplace, tmp, strlen(tmp) + 1); + unsetenv("DESKTOP_STARTUP_ID"); + } + /* Set window opacity if needed. */ if ((props[PROP_EWMH_OPACITY] != None) && (rs_opacity != 0xff)) { XChangeProperty(Xdisplay, TermWin.parent, props[PROP_EWMH_OPACITY], ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs