summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Baumann <dannybaumann@web.de>2007-04-06 15:57:59 +0200
committerDanny Baumann <dannybaumann@web.de>2007-04-06 15:57:59 +0200
commit8e6550e774eb94836c8126c4572b265108eeec2d (patch)
treec4e35ff3f44feeaa52dba1685b3c15b216d8544e
parent82b2eb6589091ec265bc5b8a67c25fe2285c7f54 (diff)
downloadberyl-premerge-8e6550e774eb94836c8126c4572b265108eeec2d.tar.gz
beryl-premerge-8e6550e774eb94836c8126c4572b265108eeec2d.tar.bz2
Only allow window fullscreening if it's permitted 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 d231260..cb436ec 100644
--- a/src/extrawm.c
+++ b/src/extrawm.c
@@ -86,7 +86,7 @@ toggleFullscreen (CompDisplay * d,
xid = getIntOptionNamed(option, nOption, "window", 0);
w = findTopLevelWindowAtDisplay(d, xid);
- if (w)
+ if (w && (w->actions & CompWindowActionFullscreenMask))
fullscreenWindow(w, w->state ^ CompWindowStateFullscreenMask);
return TRUE;