but rename ob_pid back to openbox_pid for backwards compatibility. this will go away entirely soon.

This commit is contained in:
Dana Jansens 2007-05-13 22:33:04 +00:00
parent 99e23015cf
commit 0ef82a1bda
3 changed files with 5 additions and 5 deletions

View file

@ -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");

View file

@ -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;

View file

@ -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 */