rename the openbox_* atoms back to ob_*

This commit is contained in:
Dana Jansens 2007-05-13 22:31:36 +00:00
parent 2676b61b0f
commit 99e23015cf
6 changed files with 22 additions and 22 deletions

View file

@ -1181,7 +1181,7 @@ static void client_get_state(ObClient *self)
self->below = TRUE; self->below = TRUE;
else if (state[i] == prop_atoms.net_wm_state_demands_attention) else if (state[i] == prop_atoms.net_wm_state_demands_attention)
self->demands_attention = TRUE; self->demands_attention = TRUE;
else if (state[i] == prop_atoms.openbox_wm_state_undecorated) else if (state[i] == prop_atoms.ob_wm_state_undecorated)
self->undecorated = TRUE; self->undecorated = TRUE;
} }
@ -2296,7 +2296,7 @@ static void client_change_state(ObClient *self)
if (self->demands_attention) if (self->demands_attention)
netstate[num++] = prop_atoms.net_wm_state_demands_attention; netstate[num++] = prop_atoms.net_wm_state_demands_attention;
if (self->undecorated) if (self->undecorated)
netstate[num++] = prop_atoms.openbox_wm_state_undecorated; netstate[num++] = prop_atoms.ob_wm_state_undecorated;
PROP_SETA32(self->window, net_wm_state, atom, netstate, num); PROP_SETA32(self->window, net_wm_state, atom, netstate, num);
if (self->frame) if (self->frame)
@ -3224,7 +3224,7 @@ void client_set_state(ObClient *self, Atom action, glong data1, glong data2)
action = self->demands_attention ? action = self->demands_attention ?
prop_atoms.net_wm_state_remove : prop_atoms.net_wm_state_remove :
prop_atoms.net_wm_state_add; prop_atoms.net_wm_state_add;
else if (state == prop_atoms.openbox_wm_state_undecorated) else if (state == prop_atoms.ob_wm_state_undecorated)
action = undecorated ? prop_atoms.net_wm_state_remove : action = undecorated ? prop_atoms.net_wm_state_remove :
prop_atoms.net_wm_state_add; prop_atoms.net_wm_state_add;
} }
@ -3254,7 +3254,7 @@ void client_set_state(ObClient *self, Atom action, glong data1, glong data2)
below = TRUE; below = TRUE;
} else if (state == prop_atoms.net_wm_state_demands_attention) { } else if (state == prop_atoms.net_wm_state_demands_attention) {
demands_attention = TRUE; demands_attention = TRUE;
} else if (state == prop_atoms.openbox_wm_state_undecorated) { } else if (state == prop_atoms.ob_wm_state_undecorated) {
undecorated = TRUE; undecorated = TRUE;
} }
@ -3281,7 +3281,7 @@ void client_set_state(ObClient *self, Atom action, glong data1, glong data2)
below = FALSE; below = FALSE;
} else if (state == prop_atoms.net_wm_state_demands_attention) { } else if (state == prop_atoms.net_wm_state_demands_attention) {
demands_attention = FALSE; demands_attention = FALSE;
} else if (state == prop_atoms.openbox_wm_state_undecorated) { } else if (state == prop_atoms.ob_wm_state_undecorated) {
undecorated = FALSE; undecorated = FALSE;
} }
} }

View file

@ -681,7 +681,7 @@ static void event_handle_root(XEvent *e)
screen_set_num_desktops(d); screen_set_num_desktops(d);
} else if (msgtype == prop_atoms.net_showing_desktop) { } else if (msgtype == prop_atoms.net_showing_desktop) {
screen_show_desktop(e->xclient.data.l[0] != 0, NULL); screen_show_desktop(e->xclient.data.l[0] != 0, NULL);
} else if (msgtype == prop_atoms.openbox_control) { } else if (msgtype == prop_atoms.ob_control) {
if (e->xclient.data.l[0] == 1) if (e->xclient.data.l[0] == 1)
ob_reconfigure(); ob_reconfigure();
else if (e->xclient.data.l[0] == 2) else if (e->xclient.data.l[0] == 2)

View file

@ -150,7 +150,7 @@ gint main(gint argc, gchar **argv)
* remote_control = 1 -> reconfigure * remote_control = 1 -> reconfigure
* remote_control = 2 -> restart */ * remote_control = 2 -> restart */
PROP_MSG(RootWindow(ob_display, ob_screen), PROP_MSG(RootWindow(ob_display, ob_screen),
openbox_control, remote_control, 0, 0, 0); ob_control, remote_control, 0, 0, 0);
XCloseDisplay(ob_display); XCloseDisplay(ob_display);
exit(EXIT_SUCCESS); exit(EXIT_SUCCESS);
} }
@ -242,7 +242,7 @@ gint main(gint argc, gchar **argv)
if (config_type != NULL) if (config_type != NULL)
PROP_SETS(RootWindow(ob_display, ob_screen), PROP_SETS(RootWindow(ob_display, ob_screen),
openbox_config, config_type); ob_config, config_type);
/* we're done with parsing now, kill it */ /* we're done with parsing now, kill it */
parse_shutdown(i); parse_shutdown(i);

View file

@ -170,10 +170,10 @@ void prop_startup()
CREATE(esetrootid, "ESETROOT_PMAP_ID"); CREATE(esetrootid, "ESETROOT_PMAP_ID");
*/ */
CREATE(openbox_pid, "_OPENBOX_PID"); CREATE(ob_pid, "_OB_PID");
CREATE(openbox_config, "_OPENBOX_CONFIG"); CREATE(ob_config, "_OB_CONFIG");
CREATE(openbox_wm_state_undecorated, "_OB_WM_STATE_UNDECORATED"); CREATE(ob_wm_state_undecorated, "_OB_WM_STATE_UNDECORATED");
CREATE(openbox_control, "_OPENBOX_CONTROL"); CREATE(ob_control, "_OB_CONTROL");
} }
#include <X11/Xutil.h> #include <X11/Xutil.h>

View file

@ -190,10 +190,10 @@ typedef struct Atoms {
/* Openbox specific atoms */ /* Openbox specific atoms */
Atom openbox_wm_state_undecorated; Atom ob_wm_state_undecorated;
Atom openbox_pid; Atom ob_pid; /* this is depreecated in favour of ob_control */
Atom openbox_config; Atom ob_config;
Atom openbox_control; Atom ob_control;
} Atoms; } Atoms;
Atoms prop_atoms; Atoms prop_atoms;

View file

@ -196,7 +196,7 @@ gboolean screen_annex(const gchar *program_name)
/* set the OPENBOX_PID hint */ /* set the OPENBOX_PID hint */
pid = getpid(); pid = getpid();
PROP_SET32(RootWindow(ob_display, ob_screen), PROP_SET32(RootWindow(ob_display, ob_screen),
openbox_pid, cardinal, pid); ob_pid, cardinal, pid);
/* set supporting window */ /* set supporting window */
PROP_SET32(RootWindow(ob_display, ob_screen), PROP_SET32(RootWindow(ob_display, ob_screen),
@ -289,10 +289,10 @@ gboolean screen_annex(const gchar *program_name)
supported[i++] = prop_atoms.kde_net_wm_frame_strut; supported[i++] = prop_atoms.kde_net_wm_frame_strut;
supported[i++] = prop_atoms.kde_net_wm_window_type_override; supported[i++] = prop_atoms.kde_net_wm_window_type_override;
supported[i++] = prop_atoms.openbox_wm_state_undecorated; supported[i++] = prop_atoms.ob_wm_state_undecorated;
supported[i++] = prop_atoms.openbox_pid; supported[i++] = prop_atoms.ob_pid;
supported[i++] = prop_atoms.openbox_config; supported[i++] = prop_atoms.ob_config;
supported[i++] = prop_atoms.openbox_control; supported[i++] = prop_atoms.ob_control;
g_assert(i == num_support); g_assert(i == num_support);
PROP_SETA32(RootWindow(ob_display, ob_screen), PROP_SETA32(RootWindow(ob_display, ob_screen),
@ -373,7 +373,7 @@ void screen_shutdown(gboolean reconfig)
NoEventMask); NoEventMask);
/* we're not running here no more! */ /* we're not running here no more! */
PROP_ERASE(RootWindow(ob_display, ob_screen), openbox_pid); PROP_ERASE(RootWindow(ob_display, ob_screen), ob_pid);
/* not without us */ /* not without us */
PROP_ERASE(RootWindow(ob_display, ob_screen), net_supported); PROP_ERASE(RootWindow(ob_display, ob_screen), net_supported);
/* don't keep this mode */ /* don't keep this mode */