summaryrefslogtreecommitdiff
path: root/beryl-plugins/src/rotate.c
diff options
context:
space:
mode:
authorplayerX <playerX@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-01-24 22:07:16 +0000
committerplayerX <playerX@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-01-24 22:07:16 +0000
commitfee4e3cdb824d349842e10755ad1285962253a88 (patch)
tree3cbc063719a3c0b85ecbe3a89cdb7f201bb4fe38 /beryl-plugins/src/rotate.c
parentff8cf17a0772039f1515b498167c2f8f77083985 (diff)
downloadmarex-dev-fee4e3cdb824d349842e10755ad1285962253a88.tar.gz
marex-dev-fee4e3cdb824d349842e10755ad1285962253a88.tar.bz2
beryl-plugins/rotate: Only snap to top or bottom when hsize > 2
git-svn-id: file:///beryl/trunk@3096 d7aaf104-2d23-0410-ae22-9d23157bf5a3
Diffstat (limited to 'beryl-plugins/src/rotate.c')
-rw-r--r--beryl-plugins/src/rotate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/beryl-plugins/src/rotate.c b/beryl-plugins/src/rotate.c
index 0c27e4f..5d7e655 100644
--- a/beryl-plugins/src/rotate.c
+++ b/beryl-plugins/src/rotate.c
@@ -580,11 +580,11 @@ static int adjustVelocity(CompScreen * s, RotateScreen * rs, int size)
}
else
{
- if (rs->snapTop && rs->yrot > 50.0f)
+ if (rs->snapTop && s->hsize > 2 && rs->yrot > 50.0f)
{
yrot = -(90.f - rs->yrot);
}
- else if (rs->snapBottom && rs->yrot < -50.0f)
+ else if (rs->snapBottom && s->hsize > 2 && rs->yrot < -50.0f)
{
yrot = (90.0f + rs->yrot);
}