summaryrefslogtreecommitdiff
path: root/beryl-plugins/src/miniview.c
diff options
context:
space:
mode:
authorracarr <racarr@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-02-02 21:00:25 +0000
committerracarr <racarr@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2007-02-02 21:00:25 +0000
commit1ebcae2c8359e0c74327d5d64edacf2934add6d9 (patch)
tree8bdc57cb52ebbddc34b94bd6e0894ff2ad4a62c0 /beryl-plugins/src/miniview.c
parent1b3f8cb4e3b9f1af73b452ef8fa283e42311bfd9 (diff)
downloadmarex-dev-1ebcae2c8359e0c74327d5d64edacf2934add6d9.tar.gz
marex-dev-1ebcae2c8359e0c74327d5d64edacf2934add6d9.tar.bz2
When moving miniviews move miniview to location of mouse when keybinding triggered rather than not activating if mouse isn't over miniview
git-svn-id: file:///beryl/trunk@3583 d7aaf104-2d23-0410-ae22-9d23157bf5a3
Diffstat (limited to 'beryl-plugins/src/miniview.c')
-rw-r--r--beryl-plugins/src/miniview.c18
1 files changed, 4 insertions, 14 deletions
diff --git a/beryl-plugins/src/miniview.c b/beryl-plugins/src/miniview.c
index f440261..d15d8c8 100644
--- a/beryl-plugins/src/miniview.c
+++ b/beryl-plugins/src/miniview.c
@@ -130,20 +130,10 @@ static Bool miniviewMove(CompDisplay * d, CompAction * action,
xid = getIntOptionNamed(option, nOption, "root", 0);
s = findScreenAtDisplay(d, xid);
MINIVIEW_SCREEN(s);
- float xam = s->workArea.width;
- xam /= -ms->zCam;
- xam /= 2;
- float yam = s->workArea.height;
- yam /= -ms->zCam;
- yam /=2;
- if ( (d->pointerX > (ms->miniX - xam)) && (d->pointerX < (ms->miniX + xam)))
- {
- if ( ( d->pointerY > (ms->miniY - yam)) && (d->pointerY < (ms->miniY + yam)))
- {
- ms->moving = !ms->moving;
- damageScreen(s);
- }
- }
+ ms->moving = !ms->moving;
+ damageScreen(s);
+
+
return FALSE;
}