all repos — openbox @ 382d37553d9dc7679464cf71aecf8590cc06a2cb

openbox fork - make it a bit more like ryudo

add an atom ob_wm_action_undecorate to match with ob_wm_state_undecorated, so stuff could know if the window can be undecorated
Dana Jansens danakj@orodu.net
commit

382d37553d9dc7679464cf71aecf8590cc06a2cb

parent

f9a79e6062a41615c58cee81fa721578d7c2a4aa

4 files changed, 6 insertions(+), 1 deletions(-)

jump to
M openbox/client.copenbox/client.c

@@ -1721,7 +1721,7 @@ }

static void client_change_allowed_actions(ObClient *self) { - gulong actions[11]; + gulong actions[12]; gint num = 0; /* desktop windows are kept on all desktops */

@@ -1748,6 +1748,8 @@ if (self->functions & OB_CLIENT_FUNC_ABOVE)

actions[num++] = prop_atoms.net_wm_action_above; if (self->functions & OB_CLIENT_FUNC_BELOW) actions[num++] = prop_atoms.net_wm_action_below; + if (self->functions & OB_CLIENT_FUNC_UNDECORATE) + actions[num++] = prop_atoms.ob_wm_action_undecorate; PROP_SETA32(self->window, net_wm_allowed_actions, atom, actions, num);
M openbox/prop.copenbox/prop.c

@@ -172,6 +172,7 @@ */

CREATE(openbox_pid, "_OPENBOX_PID"); CREATE(ob_config, "_OB_CONFIG"); + CREATE(ob_wm_action_undecorate, "_OB_WM_ACTION_UNDECORATED"); CREATE(ob_wm_state_undecorated, "_OB_WM_STATE_UNDECORATED"); CREATE(ob_control, "_OB_CONTROL"); }
M openbox/prop.hopenbox/prop.h

@@ -190,6 +190,7 @@ */

/* Openbox specific atoms */ + Atom ob_wm_action_undecorate; Atom ob_wm_state_undecorated; Atom openbox_pid; /* this is depreecated in favour of ob_control */ Atom ob_config;
M openbox/screen.copenbox/screen.c

@@ -288,6 +288,7 @@ supported[i++] = prop_atoms.kde_wm_change_state;

supported[i++] = prop_atoms.kde_net_wm_frame_strut; supported[i++] = prop_atoms.kde_net_wm_window_type_override; + supported[i++] = prop_atoms.ob_wm_action_undecorate; supported[i++] = prop_atoms.ob_wm_state_undecorated; supported[i++] = prop_atoms.openbox_pid; supported[i++] = prop_atoms.ob_config;