summaryrefslogtreecommitdiff
path: root/src/window.c
diff options
context:
space:
mode:
authorElijah Newren <newren gmail com>2007-04-11 17:15:54 +0000
committerElijah Newren <newren@src.gnome.org>2007-04-11 17:15:54 +0000
commit7626f74b8562ba8f1440f52ebf34f2f6131af545 (patch)
tree20eced591921fd02a9dc19c73ce876f71f592c36 /src/window.c
parenteb639a46504c51e8f0f058c1fd23ea770fc65973 (diff)
downloadmetacity-7626f74b8562ba8f1440f52ebf34f2f6131af545.tar.gz
Advertise support of Above and Below operations (assuming the proposed
2007-04-11 Elijah Newren <newren gmail com> Advertise support of Above and Below operations (assuming the proposed EWMH additions of _NET_WM_ACTION_(ABOVE|BELOW) will be accepted, otherwise these changes will have to be modified). Part of #115247. * src/display.[ch] (meta_display_open, struct MetaDisplay): * src/screen.c (set_wm_check_hint): Add support for _NET_WM_ACTION_ABOVE and _NET_WM_ACTION_BELOW * src/window.c (set_allowed_actions_hints): add active_above and action_below svn path=/trunk/; revision=3190
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/window.c b/src/window.c
index 9aaa682d..78c6e992 100644
--- a/src/window.c
+++ b/src/window.c
@@ -6035,7 +6035,7 @@ recalc_window_type (MetaWindow *window)
static void
set_allowed_actions_hint (MetaWindow *window)
{
-#define MAX_N_ACTIONS 10
+#define MAX_N_ACTIONS 12
unsigned long data[MAX_N_ACTIONS];
int i;
@@ -6081,6 +6081,12 @@ set_allowed_actions_hint (MetaWindow *window)
++i;
}
+ /* I guess we always allow above/below operations */
+ data[i] = window->display->atom_net_wm_action_above;
+ ++i;
+ data[i] = window->display->atom_net_wm_action_below;
+ ++i;
+
g_assert (i <= MAX_N_ACTIONS);
meta_verbose ("Setting _NET_WM_ALLOWED_ACTIONS with %d atoms\n", i);