summaryrefslogtreecommitdiff
path: root/src/screen.c
diff options
context:
space:
mode:
authorMark McLoughlin <mark@skynet.ie>2002-08-01 23:52:47 +0000
committerMark McLoughlin <mmclouglin@src.gnome.org>2002-08-01 23:52:47 +0000
commit95e4c6ac2a717c25fb85d78ff1e0024d918bd24a (patch)
tree46a67cdbae76b8fedd1269bd0e9742a2845a86fb /src/screen.c
parent9e868129286ee005be6525a5c4a4aa4e3472331a (diff)
downloadmetacity-95e4c6ac2a717c25fb85d78ff1e0024d918bd24a.tar.gz
Implements support for _NET_WM_ALLOWED_ACTIONS. Fixes #84282.
2002-08-01 Mark McLoughlin <mark@skynet.ie> Implements support for _NET_WM_ALLOWED_ACTIONS. Fixes #84282. * src/display.[ch]: (meta_display_open): add _NET_WM_ALLOWED_ACTIONS atoms. * src/screen.c: (set_supported_hint): set them as being supported. * src/window.c: (set_allowed_actions_hint): impl setting _NET_WM_ALLOWED_ACTIONS. (recalc_window_features): use it here, but only if things have changed.
Diffstat (limited to 'src/screen.c')
-rw-r--r--src/screen.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/screen.c b/src/screen.c
index 4a516148..e35ca43f 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -81,7 +81,7 @@ set_wm_check_hint (MetaScreen *screen)
static int
set_supported_hint (MetaScreen *screen)
{
-#define N_SUPPORTED 33
+#define N_SUPPORTED 42
#define N_WIN_SUPPORTED 1
Atom atoms[N_SUPPORTED];
@@ -118,6 +118,15 @@ set_supported_hint (MetaScreen *screen)
atoms[30] = screen->display->atom_net_show_desktop;
atoms[31] = screen->display->atom_net_desktop_layout;
atoms[32] = screen->display->atom_net_desktop_names;
+ atoms[33] = screen->display->atom_net_wm_allowed_actions;
+ atoms[34] = screen->display->atom_net_wm_action_move;
+ atoms[35] = screen->display->atom_net_wm_action_resize;
+ atoms[36] = screen->display->atom_net_wm_action_shade;
+ atoms[37] = screen->display->atom_net_wm_action_stick;
+ atoms[38] = screen->display->atom_net_wm_action_maximize_horz;
+ atoms[39] = screen->display->atom_net_wm_action_maximize_vert;
+ atoms[40] = screen->display->atom_net_wm_action_change_desktop;
+ atoms[41] = screen->display->atom_net_wm_action_close;
XChangeProperty (screen->display->xdisplay, screen->xroot,
screen->display->atom_net_supported,