From: Dana Jansens Date: Sun, 13 May 2007 22:33:04 +0000 (+0000) Subject: but rename ob_pid back to openbox_pid for backwards compatibility. this will go away... X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=0ef82a1bda21d37f931a2fb0062c6274e360108a;p=chaz%2Fopenbox but rename ob_pid back to openbox_pid for backwards compatibility. this will go away entirely soon. --- diff --git a/openbox/prop.c b/openbox/prop.c index 4cf832ff..36e52017 100644 --- a/openbox/prop.c +++ b/openbox/prop.c @@ -170,7 +170,7 @@ void prop_startup() CREATE(esetrootid, "ESETROOT_PMAP_ID"); */ - CREATE(ob_pid, "_OB_PID"); + CREATE(openbox_pid, "_OPENBOX_PID"); CREATE(ob_config, "_OB_CONFIG"); CREATE(ob_wm_state_undecorated, "_OB_WM_STATE_UNDECORATED"); CREATE(ob_control, "_OB_CONTROL"); diff --git a/openbox/prop.h b/openbox/prop.h index a1d9f52e..35eb1979 100644 --- a/openbox/prop.h +++ b/openbox/prop.h @@ -191,7 +191,7 @@ typedef struct Atoms { /* Openbox specific atoms */ Atom ob_wm_state_undecorated; - Atom ob_pid; /* this is depreecated in favour of ob_control */ + Atom openbox_pid; /* this is depreecated in favour of ob_control */ Atom ob_config; Atom ob_control; } Atoms; diff --git a/openbox/screen.c b/openbox/screen.c index 684dd5bb..d71c9eaa 100644 --- a/openbox/screen.c +++ b/openbox/screen.c @@ -196,7 +196,7 @@ gboolean screen_annex(const gchar *program_name) /* set the OPENBOX_PID hint */ pid = getpid(); PROP_SET32(RootWindow(ob_display, ob_screen), - ob_pid, cardinal, pid); + openbox_pid, cardinal, pid); /* set supporting window */ PROP_SET32(RootWindow(ob_display, ob_screen), @@ -290,7 +290,7 @@ gboolean screen_annex(const gchar *program_name) supported[i++] = prop_atoms.kde_net_wm_window_type_override; supported[i++] = prop_atoms.ob_wm_state_undecorated; - supported[i++] = prop_atoms.ob_pid; + supported[i++] = prop_atoms.openbox_pid; supported[i++] = prop_atoms.ob_config; supported[i++] = prop_atoms.ob_control; g_assert(i == num_support); @@ -373,7 +373,7 @@ void screen_shutdown(gboolean reconfig) NoEventMask); /* we're not running here no more! */ - PROP_ERASE(RootWindow(ob_display, ob_screen), ob_pid); + PROP_ERASE(RootWindow(ob_display, ob_screen), openbox_pid); /* not without us */ PROP_ERASE(RootWindow(ob_display, ob_screen), net_supported); /* don't keep this mode */