]> Dogcows Code - chaz/openbox/commitdiff
add an atom ob_wm_action_undecorate to match with ob_wm_state_undecorated, so stuff...
authorDana Jansens <danakj@orodu.net>
Thu, 17 May 2007 04:15:34 +0000 (04:15 +0000)
committerDana Jansens <danakj@orodu.net>
Thu, 17 May 2007 04:15:34 +0000 (04:15 +0000)
openbox/client.c
openbox/prop.c
openbox/prop.h
openbox/screen.c

index addaed44f8c1f14fd531bb1570c6766446c3d1ae..b0482faa6003beb4a8321aa3a4ccddc9996504da 100644 (file)
@@ -1721,7 +1721,7 @@ void client_setup_decor_and_functions(ObClient *self)
 
 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 @@ static void client_change_allowed_actions(ObClient *self)
         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);
 
index 36e520171d061a1558482317e34587fa312e4e79..d3f39e631ef57814c18cf46579b078cf1a6bbc19 100644 (file)
@@ -172,6 +172,7 @@ void prop_startup()
 
     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");
 }
index 35eb1979211c3a1bde3e84764408edf4df03d17a..3f18a363398e52a6a43abe8df22fca3f7de0e046 100644 (file)
@@ -190,6 +190,7 @@ typedef struct Atoms {
 
     /* 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;
index 452462979c663e868e5b85981908fc344b17c48f..a72bd7e5543a1269bd080fae2c7c722fbdf2d288 100644 (file)
@@ -288,6 +288,7 @@ gboolean screen_annex()
     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;
This page took 0.028851 seconds and 4 git commands to generate.