summaryrefslogtreecommitdiff
path: root/beryl-plugins/src/rotate.c
diff options
context:
space:
mode:
authorixce <ixce@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2006-10-31 14:19:18 +0000
committerixce <ixce@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2006-10-31 14:19:18 +0000
commit99273baa52fb7109c36a65119d98bf714f0f3b39 (patch)
tree2f866fd9cc5a6483b543005a4d57b86599699e31 /beryl-plugins/src/rotate.c
parent2fc9eba873f43883a73049238a616850da186ecf (diff)
downloadmarex-dev-99273baa52fb7109c36a65119d98bf714f0f3b39.tar.gz
marex-dev-99273baa52fb7109c36a65119d98bf714f0f3b39.tar.bz2
Don't initiate any animations when desktop width is less then 4 times the screen (David Reveman)
git-svn-id: file:///beryl/trunk@927 d7aaf104-2d23-0410-ae22-9d23157bf5a3
Diffstat (limited to 'beryl-plugins/src/rotate.c')
-rw-r--r--beryl-plugins/src/rotate.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/beryl-plugins/src/rotate.c b/beryl-plugins/src/rotate.c
index abb2415..62d3afa 100644
--- a/beryl-plugins/src/rotate.c
+++ b/beryl-plugins/src/rotate.c
@@ -1028,6 +1028,9 @@ rotateInitiate (CompDisplay * d,
{
ROTATE_SCREEN (s);
+ if (s->hsize < 4)
+ return FALSE;
+
if (rs->rotateHandle && rs->grabWindow)
{
if (otherScreenGrabExist (s, "rotate", "move", 0))
@@ -1136,6 +1139,9 @@ rotate (CompDisplay * d,
ROTATE_SCREEN (s);
+ if (s->hsize < 4)
+ return FALSE;
+
if (otherScreenGrabExist (s, "rotate", "move", "switcher", "cube", 0))
return FALSE;
@@ -1260,6 +1266,9 @@ rotateWithWindow (CompDisplay * d,
ROTATE_SCREEN (s);
+ if (s->hsize < 4)
+ return FALSE;
+
direction = getIntOptionNamed (option, nOption, "direction", 0);
if (!direction)
return FALSE;
@@ -1716,6 +1725,9 @@ rotateEdgeFlip (CompScreen * s,
ROTATE_DISPLAY (s->display);
+ if (s->hsize < 4)
+ return;
+
if (otherScreenGrabExist (s, "rotate", "move", 0))
return;