summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root@JOEL-GENTOO2.(none)>2008-02-29 12:39:09 +0900
committerroot <root@JOEL-GENTOO2.(none)>2008-02-29 12:39:09 +0900
commit3e4e87421b5a5ce9a6149a6d2c9bbc722e92dbcd (patch)
tree9b978263d0275baf25e1cfeaaa7418af7823172b
parent94dbbdffce9311691e5e0d43e66bdaa20221a99a (diff)
downloadmp-master.tar.gz
mp-master.tar.bz2
Remove commented code which I was testing (but didn't do what I wanted)HEADmaster
-rw-r--r--resize2/resize2.c37
1 files changed, 1 insertions, 36 deletions
diff --git a/resize2/resize2.c b/resize2/resize2.c
index 7492606..bd83c0d 100644
--- a/resize2/resize2.c
+++ b/resize2/resize2.c
@@ -322,15 +322,6 @@ resizeHandleDeviceReleaseEvent (CompDisplay *d, XDeviceButtonEvent *event)
dev->w = NULL;
XUngrabDevice (d->display, dev->device, CurrentTime);
-// XUngrabDeviceButton( d->display /* display */,
- // dev->device /* device */,
- //Button1 /* button */,
-// AnyModifier /* modifiers */,
- // NULL /* modifier_dev */,
- //w->id /* grab_window */
-//);
-
-
resizeCalculateWindowSize (w);
resizeUpdateWindowSize (w);
}
@@ -389,9 +380,7 @@ resizeHandleClientMessage (CompDisplay *d, XEvent *event)
DeviceMotionNotify (dev->device, rd->type_motion, classes[1]);
DeviceEnterNotify (dev->device, rd->type_enter, classes[2]);
DeviceLeaveNotify (dev->device, rd->type_leave, classes[3]);
-
- //XSelectExtensionEvent(d->display, w->screen->root, classes, 4);
-
+
Bool status = XGrabDevice(d->display,
dev->device,
w->id,
@@ -401,30 +390,6 @@ resizeHandleClientMessage (CompDisplay *d, XEvent *event)
GrabModeAsync,
GrabModeAsync,
CurrentTime);
- /*
- Bool status= XExtendedGrabDevice (d->display,
- dev->device,
- w->id,
- GrabModeAsync,
- FALSE,
- None,
- None, /* XXX should be set to the correct cursor for the corner
- 4,
- classes,
- 0,
- NULL);/
-
- Bool status = XGrabDeviceButton(d->display,
- dev->device,
- Button1,
- AnyModifier,
- NULL,
- w->id,
- False,
- 4,
- classes,
- GrabModeAsync,
- GrabModeAsync); */
if(status)
{