summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2007-04-06 16:06:12 +0200
committerDanny Baumann <dannybaumann@web.de>2007-04-06 16:06:12 +0200
commit436fda8ce2aaaf9a5692aa848b4dcad89f36776f (patch)
tree8c14d4d55800999963588e27786e707fa596e77b
parent8e6550e774eb94836c8126c4572b265108eeec2d (diff)
downloadberyl-premerge-436fda8ce2aaaf9a5692aa848b4dcad89f36776f.tar.gz
beryl-premerge-436fda8ce2aaaf9a5692aa848b4dcad89f36776f.tar.bz2
Only allow toggling sticky if that is allowed by the action array.
-rw-r--r--src/extrawm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/extrawm.c b/src/extrawm.c
index cb436ec..227ae27 100644
--- a/src/extrawm.c
+++ b/src/extrawm.c
@@ -152,7 +152,7 @@ toggleSticky (CompDisplay * d,
xid = getIntOptionNamed(option, nOption, "window", 0);
w = findTopLevelWindowAtDisplay(d, xid);
- if (w)
+ if (w && (w->actions & CompWindowActionStickMask))
{
unsigned int newState;
newState = w->state ^ CompWindowStateStickyMask;