summaryrefslogtreecommitdiff
path: root/beryl-plugins/src/move.c
diff options
context:
space:
mode:
authorreggaemanu <reggaemanu@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2006-09-29 17:37:32 +0000
committerreggaemanu <reggaemanu@d7aaf104-2d23-0410-ae22-9d23157bf5a3>2006-09-29 17:37:32 +0000
commit874ddfbe5b368a182cfceec8db2e72729ae88641 (patch)
tree7ed391f60e3b86752691611f10e5c9c8c54b0695 /beryl-plugins/src/move.c
parent6418caa53fa018b76072f3c213cdd8933deaf75e (diff)
downloadmarex-dev-874ddfbe5b368a182cfceec8db2e72729ae88641.tar.gz
marex-dev-874ddfbe5b368a182cfceec8db2e72729ae88641.tar.bz2
Add patch to terminate moves when a mouse button is clicked (from fedora)
git-svn-id: file:///beryl/trunk@380 d7aaf104-2d23-0410-ae22-9d23157bf5a3
Diffstat (limited to 'beryl-plugins/src/move.c')
-rw-r--r--beryl-plugins/src/move.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/beryl-plugins/src/move.c b/beryl-plugins/src/move.c
index 79dde53..878b6a6 100644
--- a/beryl-plugins/src/move.c
+++ b/beryl-plugins/src/move.c
@@ -393,6 +393,20 @@ moveHandleEvent (CompDisplay * d, XEvent * event)
switch (event->type)
{
+ case ButtonPress:
+ s = findScreenAtDisplay (d, event->xbutton.root);
+ if (s)
+ {
+ MOVE_SCREEN (s);
+
+ if (ms->grabIndex)
+ {
+ moveTerminate (d,
+ &md->opt[MOVE_DISPLAY_OPTION_INITIATE].value.action,
+ 0, NULL, 0);
+ }
+ }
+ break;
case KeyPress:
case KeyRelease:
s = findScreenAtDisplay (d, event->xkey.root);